summaryrefslogtreecommitdiffstats
path: root/sys/arch/sgi/hpc/hpc.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2012-09-29 18:54:36 +0000
committermiod <miod@openbsd.org>2012-09-29 18:54:36 +0000
commitc40b02a1e80a4e2bd6b6082ef44533ff93fd0006 (patch)
treee12bce65ffbea777bfadf21b501edc4bf66ca74f /sys/arch/sgi/hpc/hpc.c
parentuse ++ operator for increments (diff)
downloadwireguard-openbsd-c40b02a1e80a4e2bd6b6082ef44533ff93fd0006.tar.xz
wireguard-openbsd-c40b02a1e80a4e2bd6b6082ef44533ff93fd0006.zip
Proide a mips_sync() macro to wrap asm("sync"), and replace gazillions of
such statements with it.
Diffstat (limited to 'sys/arch/sgi/hpc/hpc.c')
-rw-r--r--sys/arch/sgi/hpc/hpc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sgi/hpc/hpc.c b/sys/arch/sgi/hpc/hpc.c
index 6c21704dd51..c04b5676f10 100644
--- a/sys/arch/sgi/hpc/hpc.c
+++ b/sys/arch/sgi/hpc/hpc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpc.c,v 1.13 2012/05/27 14:27:08 miod Exp $ */
+/* $OpenBSD: hpc.c,v 1.14 2012/09/29 18:54:38 miod Exp $ */
/* $NetBSD: hpc.c,v 1.66 2011/07/01 18:53:46 dyoung Exp $ */
/* $NetBSD: ioc.c,v 1.9 2011/07/01 18:53:47 dyoung Exp $ */
@@ -889,8 +889,7 @@ void
hpc3_space_barrier(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offs,
bus_size_t sz, int how)
{
- __asm__ __volatile__ ("sync" ::: "memory");
-
+ mips_sync();
/* just read a side-effect free register */
(void)*(volatile uint32_t *)
PHYS_TO_XKPHYS(HPC_BASE_ADDRESS_0 + HPC3_INTRSTAT_40, CCA_NC);