pmap.h (111272) | pmap.h (111299) |
---|---|
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 * $FreeBSD: head/sys/i386/include/pmap.h 111272 2003-02-22 23:43:08Z alc $ | 45 * $FreeBSD: head/sys/i386/include/pmap.h 111299 2003-02-23 09:45:50Z jake $ |
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. --- 80 unchanged lines hidden (view full) --- 134 135#ifndef LOCORE 136 137#include <sys/queue.h> 138 139typedef u_int32_t pd_entry_t; 140typedef u_int32_t pt_entry_t; 141 | 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. --- 80 unchanged lines hidden (view full) --- 134 135#ifndef LOCORE 136 137#include <sys/queue.h> 138 139typedef u_int32_t pd_entry_t; 140typedef u_int32_t pt_entry_t; 141 |
142#define PDESIZE sizeof(pd_entry_t) /* for assembly files */ 143#define PTESIZE sizeof(pt_entry_t) /* for assembly files */ | 142#define PTESHIFT (2) 143#define PDESHIFT (2) |
144 145/* 146 * Address of current and alternate address space page table maps 147 * and directories. 148 */ 149#ifdef _KERNEL 150extern pt_entry_t PTmap[], APTmap[]; 151extern pd_entry_t PTD[], APTD[]; --- 119 unchanged lines hidden --- | 144 145/* 146 * Address of current and alternate address space page table maps 147 * and directories. 148 */ 149#ifdef _KERNEL 150extern pt_entry_t PTmap[], APTmap[]; 151extern pd_entry_t PTD[], APTD[]; --- 119 unchanged lines hidden --- |