Dereferencing NULL pointers

T.J.Teixeira tjt at kobold.UUCP
Sat Nov 26 02:52:38 AEST 1983


The Masscomp 68K port "allows" dereferencing null pointers. i.e. the
address space is the same as UNIX on PDP-11's and VAX's, with the
obvious changes for differences in memory management (our page size is
4K bytes).  The separate mapping for user and kernel space does not
slow up system calls per se, but does make moving data between user and
system space more expensive (Without the 68010 instructions for
accessing different address spaces, portions of the user address space
must be mapped into kernel space first.  This sounds expensive, but is
actually quite simple: just copy one entry from the user page table to
the system page table).

We had considered mapping page 0 out of the address space but decided
not to do that as long as most UNIX systems implicitly rely on the
virtual address space beginning at 0.
-- 
	Tom Teixeira,  Massachusetts Computer Corporation.  Westford MA
	...!{ihnp4,harpo,decvax,ucbcad,tektronix}!masscomp!tjt   (617) 692-6200



More information about the Comp.unix.wizards mailing list