From: Matthew Wilcox <matthew@wil.cx>
To: linux-ia64@vger.kernel.org
Subject: Re: "BUG()" definition
Date: Mon, 20 Feb 2006 13:24:59 +0000 [thread overview]
Message-ID: <20060220132459.GA7712@parisc-linux.org> (raw)
In-Reply-To: <43F9C027.20203@bull.net>
On Mon, Feb 20, 2006 at 02:12:07PM +0100, Zoltan Menyhart wrote:
> Can someone please explain me why the generic "BUG()" definition
The "generic" case is the one we do when the architecture hasn't got
its own implementation. For a guide to what *should* be done, you
should look at x86 instead. There, you'll see:
do_exit(SIGSEGV);
(see arch/i386/kernel/traps.c)
> 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
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2006-02-20 13:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 13:12 "BUG()" definition Zoltan Menyhart
2006-02-20 13:24 ` Matthew Wilcox [this message]
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=20060220132459.GA7712@parisc-linux.org \
--to=matthew@wil.cx \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.