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

> > 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:
> >
> > #ifndef OOPS
> > #define OOPS() (*(int *)0=0)
> > #endif
>
> What is wrong with just using the existing panic() from kernel.h?

1) there is already an arch-specific define:
BUG(), defined in asm/page.h

2) panic() stops the kernel, an oops kills the current process and
tries to continue.

--
Manfred

-
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    [W:3.131 / U:1.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site