diff options
Diffstat (limited to 'sys/arch/vax')
-rw-r--r-- | sys/arch/vax/vax/pmap.c | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c index 2544cdbdbea..1a4e14a5b90 100644 --- a/sys/arch/vax/vax/pmap.c +++ b/sys/arch/vax/vax/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.25 2001/11/28 13:47:39 art Exp $ */ +/* $OpenBSD: pmap.c,v 1.26 2001/11/28 14:13:07 art Exp $ */ /* $NetBSD: pmap.c,v 1.74 1999/11/13 21:32:25 matt Exp $ */ /* * Copyright (c) 1994, 1998, 1999 Ludd, University of Lule}, Sweden. @@ -613,39 +613,6 @@ if(startpmapdebug) mtpr(0, PR_TBIA); } -void -pmap_kenter_pgs(va, pgs, npgs) - vaddr_t va; - struct vm_page **pgs; - int npgs; -{ - int i; - int *ptp; - -#ifdef PMAPDEBUG -if(startpmapdebug) - printf("pmap_kenter_pgs: va: %lx, pgs %p, npgs %x\n", va, pgs, npgs); -#endif - - /* - * May this routine affect page tables? - * We assume that, and uses TBIA. - */ - ptp = (int *)kvtopte(va); - for (i = 0 ; i < npgs ; i++) { - ptp[0] = PG_V | PG_KW | - PG_PFNUM(VM_PAGE_TO_PHYS(pgs[i])) | PG_SREF; - ptp[1] = ptp[0] + 1; - ptp[2] = ptp[0] + 2; - ptp[3] = ptp[0] + 3; - ptp[4] = ptp[0] + 4; - ptp[5] = ptp[0] + 5; - ptp[6] = ptp[0] + 6; - ptp[7] = ptp[0] + 7; - ptp += LTOHPN; - } -} - /* * pmap_enter() is the main routine that puts in mappings for pages, or * upgrades mappings to more "rights". Note that: |