From: Zoltan Menyhart <Zoltan.Menyhart@bull.net>
To: linux-ia64@vger.kernel.org
Subject: "BUG()" definition
Date: Mon, 20 Feb 2006 13:12:07 +0000 [thread overview]
Message-ID: <43F9C027.20203@bull.net> (raw)
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
next reply other threads:[~2006-02-20 13:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 13:12 Zoltan Menyhart [this message]
2006-02-20 13:24 ` "BUG()" definition Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43F9C027.20203@bull.net \
--to=zoltan.menyhart@bull.net \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox