From bddc9f385b7e9a42af93d54e2ec5be13ddc75894 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 30 Sep 2008 18:54:30 +0000 Subject: Do not perform cache operations in vmapbuf(), pmap is supposed to do them for us if needed. ok art@ kettenis@ --- sys/arch/sparc64/sparc64/vm_machdep.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sys/arch/sparc64') diff --git a/sys/arch/sparc64/sparc64/vm_machdep.c b/sys/arch/sparc64/sparc64/vm_machdep.c index bac9a8a6816..54941ea07db 100644 --- a/sys/arch/sparc64/sparc64/vm_machdep.c +++ b/sys/arch/sparc64/sparc64/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.25 2008/07/14 14:00:01 miod Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.26 2008/09/30 18:54:29 miod Exp $ */ /* $NetBSD: vm_machdep.c,v 1.38 2001/06/30 00:02:20 eeh Exp $ */ /* @@ -99,13 +99,6 @@ vmapbuf(bp, len) kva = uvm_km_valloc_prefer_wait(kernel_map, len, uva); bp->b_data = (caddr_t)(kva + off); - /* - * We have to flush any write-back cache on the - * user-space mappings so our new mappings will - * have the correct contents. - */ - cache_flush(uva, len); - upmap = vm_map_pmap(&bp->b_proc->p_vmspace->vm_map); kpmap = vm_map_pmap(kernel_map); do { -- cgit v1.2.3