pmap.c (63017f04eba60df8cff22dc683b67ee07810e025) | pmap.c (076585265f2c3c13664a3cae6a3638d53092892b) |
---|---|
1/* 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 1994 David Greenman 7 * All rights reserved. 8 * --- 25 unchanged lines hidden (view full) --- 34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 | 1/* 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 1994 David Greenman 7 * All rights reserved. 8 * --- 25 unchanged lines hidden (view full) --- 34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 |
42 * $Id: pmap.c,v 1.63 1995/10/23 00:47:10 davidg Exp $ | 42 * $Id: pmap.c,v 1.64 1995/10/23 02:31:29 davidg Exp $ |
43 */ 44 45/* 46 * Derived from hp300 version by Mike Hibler, this version by William 47 * Jolitz uses a recursive map [a pde points to the page directory] to 48 * map the page tables using the pagetables themselves. This is done to 49 * reduce the impact on kernel virtual memory for lots of sparse address 50 * space, and to reduce the cost of memory to each process. --- 760 unchanged lines hidden (view full) --- 811 struct pmap *pmap; 812 register vm_offset_t sva; 813 register vm_offset_t eva; 814{ 815 register pt_entry_t *ptp, *ptq; 816 vm_offset_t pa; 817 register pv_entry_t pv; 818 vm_offset_t va; | 43 */ 44 45/* 46 * Derived from hp300 version by Mike Hibler, this version by William 47 * Jolitz uses a recursive map [a pde points to the page directory] to 48 * map the page tables using the pagetables themselves. This is done to 49 * reduce the impact on kernel virtual memory for lots of sparse address 50 * space, and to reduce the cost of memory to each process. --- 760 unchanged lines hidden (view full) --- 811 struct pmap *pmap; 812 register vm_offset_t sva; 813 register vm_offset_t eva; 814{ 815 register pt_entry_t *ptp, *ptq; 816 vm_offset_t pa; 817 register pv_entry_t pv; 818 vm_offset_t va; |
819 vm_page_t m; | |
820 pt_entry_t oldpte; 821 822 if (pmap == NULL) 823 return; 824 825 ptp = get_pt_entry(pmap); 826 827 /* --- 593 unchanged lines hidden (view full) --- 1421 pmap_t pmap; 1422 vm_offset_t addr; 1423 vm_object_t object; 1424 vm_offset_t offset; 1425 vm_offset_t size; 1426{ 1427 vm_offset_t tmpoff; 1428 vm_page_t p; | 819 pt_entry_t oldpte; 820 821 if (pmap == NULL) 822 return; 823 824 ptp = get_pt_entry(pmap); 825 826 /* --- 593 unchanged lines hidden (view full) --- 1420 pmap_t pmap; 1421 vm_offset_t addr; 1422 vm_object_t object; 1423 vm_offset_t offset; 1424 vm_offset_t size; 1425{ 1426 vm_offset_t tmpoff; 1427 vm_page_t p; |
1429 int bits; | |
1430 int objbytes; 1431 1432 if (!pmap || ((size > MAX_INIT_PT) && 1433 (object->resident_page_count > (MAX_INIT_PT / NBPG)))) { 1434 return; 1435 } 1436 1437 /* --- 526 unchanged lines hidden --- | 1428 int objbytes; 1429 1430 if (!pmap || ((size > MAX_INIT_PT) && 1431 (object->resident_page_count > (MAX_INIT_PT / NBPG)))) { 1432 return; 1433 } 1434 1435 /* --- 526 unchanged lines hidden --- |