pmap.h (37cd370c97838f39e5ddc98ecffb0ad93009e41a) | pmap.h (8681b974c1eeacabbf4424174e9b0e707bd534e5) |
---|---|
1/* 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * the Systems Programming Group of the University of Utah Computer 7 * Science Department and William Jolitz of UUNET Technologies Inc. 8 * --- 28 unchanged lines hidden (view full) --- 37 * Derived from hp300 version by Mike Hibler, this version by William 38 * Jolitz uses a recursive map [a pde points to the page directory] to 39 * map the page tables using the pagetables themselves. This is done to 40 * reduce the impact on kernel virtual memory for lots of sparse address 41 * space, and to reduce the cost of memory to each process. 42 * 43 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 44 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 | 1/* 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * the Systems Programming Group of the University of Utah Computer 7 * Science Department and William Jolitz of UUNET Technologies Inc. 8 * --- 28 unchanged lines hidden (view full) --- 37 * Derived from hp300 version by Mike Hibler, this version by William 38 * Jolitz uses a recursive map [a pde points to the page directory] to 39 * map the page tables using the pagetables themselves. This is done to 40 * reduce the impact on kernel virtual memory for lots of sparse address 41 * space, and to reduce the cost of memory to each process. 42 * 43 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 44 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 |
45 * $Id: pmap.h,v 1.57 1998/11/24 20:25:52 eivind Exp $ | 45 * $Id: pmap.h,v 1.58 1999/03/02 16:20:39 dg Exp $ |
46 */ 47 48#ifndef _MACHINE_PMAP_H_ 49#define _MACHINE_PMAP_H_ 50 51/* 52 * Page-directory and page-table entires follow this format, with a few 53 * of the fields not present here and there, depending on a lot of things. --- 29 unchanged lines hidden (view full) --- 83#define PGEX_U 0x04 /* access from User mode (UPL) */ 84 85/* 86 * Pte related macros 87 */ 88#define VADDR(pdi, pti) ((vm_offset_t)(((pdi)<<PDRSHIFT)|((pti)<<PAGE_SHIFT))) 89 90#ifndef NKPT | 46 */ 47 48#ifndef _MACHINE_PMAP_H_ 49#define _MACHINE_PMAP_H_ 50 51/* 52 * Page-directory and page-table entires follow this format, with a few 53 * of the fields not present here and there, depending on a lot of things. --- 29 unchanged lines hidden (view full) --- 83#define PGEX_U 0x04 /* access from User mode (UPL) */ 84 85/* 86 * Pte related macros 87 */ 88#define VADDR(pdi, pti) ((vm_offset_t)(((pdi)<<PDRSHIFT)|((pti)<<PAGE_SHIFT))) 89 90#ifndef NKPT |
91#define NKPT 9 /* actual number of kernel page tables */ | 91#define NKPT 17 /* actual number of kernel page tables */ |
92#endif 93#ifndef NKPDE 94#ifdef SMP | 92#endif 93#ifndef NKPDE 94#ifdef SMP |
95#define NKPDE 62 /* addressable number of page tables/pde's */ | 95#define NKPDE 254 /* addressable number of page tables/pde's */ |
96#else | 96#else |
97#define NKPDE 63 /* addressable number of page tables/pde's */ | 97#define NKPDE 255 /* addressable number of page tables/pde's */ |
98#endif /* SMP */ 99#endif 100 101/* 102 * The *PTDI values control the layout of virtual memory 103 * 104 * XXX This works for now, but I am not real happy with it, I'll fix it 105 * right after I fix locore.s and the magic 28K hole --- 168 unchanged lines hidden --- | 98#endif /* SMP */ 99#endif 100 101/* 102 * The *PTDI values control the layout of virtual memory 103 * 104 * XXX This works for now, but I am not real happy with it, I'll fix it 105 * right after I fix locore.s and the magic 28K hole --- 168 unchanged lines hidden --- |