lkml.org 
[lkml]   [1999]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: a small doubt
On 7 Oct 1999, Jes Sorensen wrote:

> David> Such architectures are mistaken, since they are not going to
> David> catch NULL pointer derefences in the kernel correctly in all
> David> such cases.
>
> Nod, I don't want to chase bugs that way, however on some
> architectures it may be expensive working around not mapping page zero
> in kernel space.
>
> I remember Alan moaning at me for relying on page zero not being
> mapped ages ago.

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

--
"Love the dolphins," she advised him. "Write by W.A.S.T.E.."


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