Re: a small doubt

manfreds@colorfullife.com
Fri, 8 Oct 1999 11:16:42 -0400 (EDT)



> > 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/