pmap.h (e29632c9e12dabb912a35bba6e8a86646d38cf75) | pmap.h (910548dea729e52e27a95187cd3f7e9859ba05f2) |
---|---|
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 * --- 87 unchanged lines hidden (view full) --- 96 */ 97#define VADDR(pdi, pti) ((vm_offset_t)(((pdi)<<PDRSHIFT)|((pti)<<PAGE_SHIFT))) 98 99#ifndef NKPT 100#define NKPT 30 /* actual number of kernel page tables */ 101#endif 102#ifndef NKPDE 103#ifdef SMP | 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 * --- 87 unchanged lines hidden (view full) --- 96 */ 97#define VADDR(pdi, pti) ((vm_offset_t)(((pdi)<<PDRSHIFT)|((pti)<<PAGE_SHIFT))) 98 99#ifndef NKPT 100#define NKPT 30 /* actual number of kernel page tables */ 101#endif 102#ifndef NKPDE 103#ifdef SMP |
104#define NKPDE (KVA_PAGES - 2) /* addressable number of page tables/pde's */ | 104#define NKPDE (KVA_PAGES - (NPGPTD + 1)) /* number of page tables/pde's */ |
105#else | 105#else |
106#define NKPDE (KVA_PAGES - 1) /* addressable number of page tables/pde's */ | 106#define NKPDE (KVA_PAGES - NPGPTD) /* number of page tables/pde's */ |
107#endif 108#endif 109 110/* 111 * The *PTDI values control the layout of virtual memory 112 * 113 * XXX This works for now, but I am not real happy with it, I'll fix it 114 * right after I fix locore.s and the magic 28K hole 115 * 116 * SMP_PRIVPAGES: The per-cpu address space is 0xff80000 -> 0xffbfffff 117 */ | 107#endif 108#endif 109 110/* 111 * The *PTDI values control the layout of virtual memory 112 * 113 * XXX This works for now, but I am not real happy with it, I'll fix it 114 * right after I fix locore.s and the magic 28K hole 115 * 116 * SMP_PRIVPAGES: The per-cpu address space is 0xff80000 -> 0xffbfffff 117 */ |
118#define APTDPTDI (NPDEPG-1) /* alt ptd entry that points to APTD */ | 118#define APTDPTDI (NPDEPG-NPGPTD) /* alt ptd entry that points to APTD */ |
119#ifdef SMP 120#define MPPTDI (APTDPTDI-1) /* per cpu ptd entry */ 121#define KPTDI (MPPTDI-NKPDE) /* start of kernel virtual pde's */ 122#else 123#define KPTDI (APTDPTDI-NKPDE)/* start of kernel virtual pde's */ 124#endif /* SMP */ | 119#ifdef SMP 120#define MPPTDI (APTDPTDI-1) /* per cpu ptd entry */ 121#define KPTDI (MPPTDI-NKPDE) /* start of kernel virtual pde's */ 122#else 123#define KPTDI (APTDPTDI-NKPDE)/* start of kernel virtual pde's */ 124#endif /* SMP */ |
125#define PTDPTDI (KPTDI-1) /* ptd entry that points to ptd! */ | 125#define PTDPTDI (KPTDI-NPGPTD) /* ptd entry that points to ptd! */ |
126#define UMAXPTDI (PTDPTDI-1) /* ptd entry for user space end */ 127#define UMAXPTEOFF (NPTEPG) /* pte entry for user space end */ 128 129/* 130 * XXX doesn't really belong here I guess... 131 */ 132#define ISA_HOLE_START 0xa0000 133#define ISA_HOLE_LENGTH (0x100000-ISA_HOLE_START) --- 137 unchanged lines hidden --- | 126#define UMAXPTDI (PTDPTDI-1) /* ptd entry for user space end */ 127#define UMAXPTEOFF (NPTEPG) /* pte entry for user space end */ 128 129/* 130 * XXX doesn't really belong here I guess... 131 */ 132#define ISA_HOLE_START 0xa0000 133#define ISA_HOLE_LENGTH (0x100000-ISA_HOLE_START) --- 137 unchanged lines hidden --- |