Re: a small doubt

Keith Owens (kaos@ocs.com.au)
Sat, 09 Oct 1999 00:40:25 +1000


On Fri, 8 Oct 1999 09:18:36 -0500 ,
Bret Indrelee <bindrelee@sbs-cp.com> wrote:
>Oliver Xymoron [mailto:oxymoron@waste.org] wrote:
>> Why don't we simply use an OOPS() macro that causes an oops in an
>> arch-specific way? And throw this in a generic place:
>
>What is wrong with just using the existing panic() from kernel.h?
>
>If there is information that panic() doesn't save which you would get with
>an OOPS message, then that is a problem with panic.

panic() is just a general message formatter, like printk() but with a
few more side effects ;). Causing an oops gets the registers and, more
to the point, gets them at the point of failure. Registers after you
have called another routine are much less useful.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/