Messages in this thread | | | Date | Thu, 7 Oct 1999 20:46:46 -0500 (CDT) | From | Oliver Xymoron <> | Subject | Re: 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/
| |