X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-parisc%2Fbug.h;h=695588da41f8a73bb31d3fbeb7c686bf0fdfa751;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=98d36ad3cf87f99c5966ca5a902fe952403a8592;hpb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;p=linux-2.6.git diff --git a/include/asm-parisc/bug.h b/include/asm-parisc/bug.h index 98d36ad3c..695588da4 100644 --- a/include/asm-parisc/bug.h +++ b/include/asm-parisc/bug.h @@ -1,4 +1,14 @@ #ifndef _PARISC_BUG_H #define _PARISC_BUG_H + +#ifdef CONFIG_BUG +#define HAVE_ARCH_BUG +#define BUG() do { \ + printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ + dump_stack(); \ + panic("BUG!"); \ +} while (0) +#endif + #include #endif