Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-km]: src/sys/arch/xen/i386 don't use managed mappings in pmap_pdp_c...
details: https://anonhg.NetBSD.org/src/rev/8769ea67f2e9
branches: yamt-km
changeset: 573387:8769ea67f2e9
user: yamt <yamt%NetBSD.org@localhost>
date: Mon Mar 21 10:26:26 2005 +0000
description:
don't use managed mappings in pmap_pdp_ctor/dtor.
diffstat:
sys/arch/xen/i386/pmap.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diffs (43 lines):
diff -r 132fcbc7835c -r 8769ea67f2e9 sys/arch/xen/i386/pmap.c
--- a/sys/arch/xen/i386/pmap.c Mon Mar 21 10:22:17 2005 +0000
+++ b/sys/arch/xen/i386/pmap.c Mon Mar 21 10:26:26 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.7.4.2 2005/03/19 08:33:21 yamt Exp $ */
+/* $NetBSD: pmap.c,v 1.7.4.3 2005/03/21 10:26:26 yamt Exp $ */
/* NetBSD: pmap.c,v 1.179 2004/10/10 09:55:24 yamt Exp */
/*
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.7.4.2 2005/03/19 08:33:21 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.7.4.3 2005/03/21 10:26:26 yamt Exp $");
#include "opt_cputype.h"
#include "opt_user_ldt.h"
@@ -1855,11 +1855,7 @@
memset(&pdir[PDSLOT_KERN + nkpde], 0,
PAGE_SIZE - ((PDSLOT_KERN + nkpde) * sizeof(pd_entry_t)));
- pmap_enter(pmap_kernel(), (vaddr_t)pdir, pdirpa, VM_PROT_READ,
- VM_PROT_READ);
-#if 0
pmap_kenter_pa((vaddr_t)pdir, pdirpa, VM_PROT_READ);
-#endif
pmap_update(pmap_kernel());
/* pin page type */
@@ -1883,12 +1879,7 @@
/* unpin page type */
xpq_queue_unpin_table(xpmap_ptom(pdirpa));
xpq_flush_queue();
- pmap_enter(pmap_kernel(), (vaddr_t)pdir, pdirpa,
- VM_PROT_READ | VM_PROT_WRITE, VM_PROT_READ | VM_PROT_WRITE);
-#if 0
- pmap_kremove((vaddr_t)pdir, PAGE_SIZE)
pmap_kenter_pa((vaddr_t)pdir, pdirpa, VM_PROT_READ | VM_PROT_WRITE);
-#endif
pmap_update(pmap_kernel());
}
Home |
Main Index |
Thread Index |
Old Index