summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2011-09-18 10:33:24 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2011-09-18 10:33:24 +0000
commit6c010460ab569b54f785a7392e193e07d2a33a8f (patch)
tree318d31b528817aea9e650b47818d330212b6c309 /sys
parent5c80ce8334aeac17b16f22e942d2753fa66d9811 (diff)
Add missing cache and TLB purges.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa64/hppa64/mainbus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/hppa64/hppa64/mainbus.c b/sys/arch/hppa64/hppa64/mainbus.c
index 24ff248e09d..fc353d03732 100644
--- a/sys/arch/hppa64/hppa64/mainbus.c
+++ b/sys/arch/hppa64/hppa64/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.12 2010/07/01 04:17:06 jsing Exp $ */
+/* $OpenBSD: mainbus.c,v 1.13 2011/09/18 10:33:23 kettenis Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -646,6 +646,9 @@ mbus_dmamem_free(void *v, bus_dma_segment_t *segs, int nsegs)
if (!pg)
panic("mbus_dmamem_free: no page for pa");
TAILQ_INSERT_TAIL(&pglist, pg, pageq);
+ pdcache(HPPA_SID_KERNEL, pa, PAGE_SIZE);
+ pdtlb(HPPA_SID_KERNEL, pa);
+ pitlb(HPPA_SID_KERNEL, pa);
}
uvm_pglistfree(&pglist);
}