summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2011-09-18 10:33:23 +0000
committerkettenis <kettenis@openbsd.org>2011-09-18 10:33:23 +0000
commit9e1d8fb62e67ee550dbe5ebec2e4d07a90cdabd0 (patch)
tree6b6b86b9fbdef049f8eb61a8ed488d48da51ff1c
parentFix whitespace. (diff)
downloadwireguard-openbsd-9e1d8fb62e67ee550dbe5ebec2e4d07a90cdabd0.tar.xz
wireguard-openbsd-9e1d8fb62e67ee550dbe5ebec2e4d07a90cdabd0.zip
Add missing cache and TLB purges.
-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);
}