Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/cesfic/cesfic use pmap_kenter/remove in pagemove() ...
details: https://anonhg.NetBSD.org/src/rev/f0a066eab746
branches: trunk
changeset: 513223:f0a066eab746
user: drochner <drochner%NetBSD.org@localhost>
date: Thu Jul 26 15:43:39 2001 +0000
description:
use pmap_kenter/remove in pagemove() to make it work with memory mapped
by pmap_kenter_pa() (ie buffer pages)
diffstat:
sys/arch/cesfic/cesfic/vm_machdep.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (23 lines):
diff -r 1e1cd29b4cb2 -r f0a066eab746 sys/arch/cesfic/cesfic/vm_machdep.c
--- a/sys/arch/cesfic/cesfic/vm_machdep.c Thu Jul 26 15:41:14 2001 +0000
+++ b/sys/arch/cesfic/cesfic/vm_machdep.c Thu Jul 26 15:43:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.3 2001/06/15 17:48:13 drochner Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.4 2001/07/26 15:43:39 drochner Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -223,11 +223,8 @@
if (pmap_extract(pmap_kernel(), (vaddr_t)to, NULL) == TRUE)
panic("pagemove 3");
#endif
- pmap_remove(pmap_kernel(),
- (vaddr_t)from, (vaddr_t)from + PAGE_SIZE);
- pmap_enter(pmap_kernel(),
- (vaddr_t)to, pa, VM_PROT_READ|VM_PROT_WRITE,
- VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
+ pmap_kremove((vaddr_t)from, PAGE_SIZE);
+ pmap_kenter_pa((vaddr_t)to, pa, VM_PROT_READ|VM_PROT_WRITE);
from += PAGE_SIZE;
to += PAGE_SIZE;
size -= PAGE_SIZE;
Home |
Main Index |
Thread Index |
Old Index