home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright (c) 1987 NeXT, Inc.
- *
- * HISTORY
- * 15-May-91 Gregg Kellogg (gk) at NeXT
- * Converted NeXT_ stuff to m68k_ stuff.
- */
-
- #ifndef _MACH_M68K_VM_PARAM_
- #define _MACH_M68K_VM_PARAM_
-
- #import <bsd/sys/types.h>
-
- #define BYTE_SIZE 8 /* byte size in bits */
- #define BYTE_MSF 1 /* Most significant byte first in word */
-
- /*
- * These are variables so we can change the page size by just rebooting.
- */
-
- #ifndef ASSEMBLER
- extern int
- m68k_page_size, /* bytes per m68k page */
- m68k_page_mask, /* mask for page offset */
- m68k_page_shift, /* number of bits to shift for pages */
- m68k_is, /* initial shift: # of high VA bits to skip */
- m68k_tia, /* table index a */
- m68k_tib, /* table index b */
- m68k_pt1_entries, /* number of entries per level 1 page table */
- m68k_pt2_entries,
- m68k_pt1_size, /* size of a single level 1 page table */
- m68k_pt2_size,
- m68k_pt1_shift, /* bits to shift for pt1 index */
- m68k_pt2_shift,
- m68k_pt1_mask, /* mask to apply for pt1 index */
- m68k_pt2_mask,
- m68k_pt2_maps; /* a single pt2 maps this much VA space */
- #endif ASSEMBLER
-
- /*
- * Most ports place the kernel in the high half of the total
- * 32-bit virtual address (VA) space, the u-area and kernel stack
- * just below that and the user space starting at virtual
- * location zero. We disagree with this for several reasons
- * (on the VAX the hardware gives you no choice). The user
- * should be able to address the entire 4GB virtual space now
- * that Mach makes better use of virtual memory concepts
- * (mapped files, shared memory, copy-on-write etc.) -- we need
- * t&D