summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-07-18 20:06:08 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-07-18 20:06:08 +0000
commit6e7de88136fb7d45d2011dfabd77eee7f589ccaa (patch)
treeead001c016b8a09b3238290a883f7b39f3c6a61b /sys
parenta7fed9ee5d1b020f85352aa9d949f47a50389b58 (diff)
Prefer ``hit'' cache operations when flushing kernel memory.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mips64/mips64/pmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/pmap.c b/sys/arch/mips64/mips64/pmap.c
index bb2fbc519e5..5c3fbd92622 100644
--- a/sys/arch/mips64/mips64/pmap.c
+++ b/sys/arch/mips64/mips64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.28 2007/06/20 16:51:17 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.29 2007/07/18 20:06:07 miod Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -820,7 +820,7 @@ pmap_kremove(vaddr_t va, vsize_t len)
entry = pte->pt_entry;
if (!(entry & PG_V))
continue;
- Mips_SyncDCachePage(va);
+ Mips_HitSyncDCache(va, PAGE_SIZE);
pte->pt_entry = PG_NV | PG_G;
tlb_flush_addr(va);
}
@@ -978,7 +978,7 @@ pmap_copy_page(struct vm_page *srcpg, struct vm_page *dstpg)
if (sf) {
Mips_HitSyncDCache(s, PAGE_SIZE);
}
- Mips_SyncDCachePage(d);
+ Mips_HitSyncDCache(d, PAGE_SIZE);
}
/*