public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* "BUG()" definition
@ 2006-02-20 13:12 Zoltan Menyhart
  2006-02-20 13:24 ` Matthew Wilcox
  0 siblings, 1 reply; 2+ messages in thread
From: Zoltan Menyhart @ 2006-02-20 13:12 UTC (permalink / raw)
  To: linux-ia64

Can someone please explain me why the generic "BUG()" definition

#define BUG() do { \
        printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
        panic("BUG!"); \
} while (0)

has been changed to

#define BUG() do { i\
	printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
	ia64_abort(); \
} while (0)

?

Only for the sake of "show_regs()" ?

If a task calls a kernel service, and that service detects some
incoherency in the kernel data, then we usually call "BUG()".

Due to the actual "BUG()" definition, only the calling task gets
killed, the system continues with the incoherent kernel data.

Maybe "die()" should call "panic()" unconditionally, instead
of "do_exit()" ?

Thanks,

Zoltan Menyhart


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-20 13:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-20 13:12 "BUG()" definition Zoltan Menyhart
2006-02-20 13:24 ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox