lkml.org 
[lkml]   [1999]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: a small doubt
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [from the cache]
©2003-2011 Jasper Spaans