1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * William Jolitz. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91 |
35 * $FreeBSD: head/sys/i386/include/vmparam.h 282274 2015-04-30 15:48:48Z jhb $ |
36 */ 37 38 39#ifndef _MACHINE_VMPARAM_H_ 40#define _MACHINE_VMPARAM_H_ 1 41 42/* 43 * Machine dependent constants for 386. --- 86 unchanged lines hidden (view full) --- 130#define VM_LEVEL_0_ORDER 10 131#endif 132#endif 133 134/* 135 * Kernel physical load address. 136 */ 137#ifndef KERNLOAD |
138#define KERNLOAD (1 << PDRSHIFT) |
139#endif /* !defined(KERNLOAD) */ 140 141/* 142 * Virtual addresses of things. Derived from the page directory and 143 * page table indexes from pmap.h for precision. 144 * Because of the page that is both a PD and PT, it looks a little 145 * messy at times, but hey, we'll do anything to save a page :-) 146 */ 147 |
148#define VM_MAX_KERNEL_ADDRESS VADDR(KPTDI+NKPDE-1, NPTEPG-1) |
149 150#define VM_MIN_KERNEL_ADDRESS VADDR(PTDPTDI, PTDPTDI) 151 152#define KERNBASE VADDR(KPTDI, 0) 153 154#define UPT_MAX_ADDRESS VADDR(PTDPTDI, PTDPTDI) 155#define UPT_MIN_ADDRESS VADDR(PTDPTDI, 0) 156 --- 48 unchanged lines hidden --- |