| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ALPHA_BUG_H | 
 | 2 | #define _ALPHA_BUG_H | 
 | 3 |  | 
| Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 4 | #ifdef CONFIG_BUG | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | #include <asm/pal.h> | 
 | 6 |  | 
 | 7 | /* ??? Would be nice to use .gprel32 here, but we can't be sure that the | 
 | 8 |    function loaded the GP, so this could fail in modules.  */ | 
 | 9 | #define BUG() \ | 
 | 10 |   __asm__ __volatile__("call_pal %0  # bugchk\n\t"".long %1\n\t.8byte %2" \ | 
 | 11 | 		       : : "i" (PAL_bugchk), "i"(__LINE__), "i"(__FILE__)) | 
 | 12 |  | 
 | 13 | #define HAVE_ARCH_BUG | 
| Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 14 | #endif | 
 | 15 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #include <asm-generic/bug.h> | 
 | 17 |  | 
 | 18 | #endif |