summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/xbow/xheart.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-09-29 18:54:40 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-09-29 18:54:40 +0000
commita2cee032ec1afe36876c84a6d3e297d71022838f (patch)
treec90e9fd6a8fd3e64954b624dc8a0a34eecf12f72 /sys/arch/sgi/xbow/xheart.c
parent67aac14886c5fb28e1445da5a9874ff7a03aa0c4 (diff)
Proide a mips_sync() macro to wrap asm("sync"), and replace gazillions of
such statements with it.
Diffstat (limited to 'sys/arch/sgi/xbow/xheart.c')
-rw-r--r--sys/arch/sgi/xbow/xheart.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sgi/xbow/xheart.c b/sys/arch/sgi/xbow/xheart.c
index d729b5a52d0..70d88b08749 100644
--- a/sys/arch/sgi/xbow/xheart.c
+++ b/sys/arch/sgi/xbow/xheart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xheart.c,v 1.23 2011/07/10 17:48:25 miod Exp $ */
+/* $OpenBSD: xheart.c,v 1.24 2012/09/29 18:54:39 miod Exp $ */
/*
* Copyright (c) 2008 Miodrag Vallat.
@@ -398,7 +398,8 @@ xheart_splx(int newipl)
/* Update masks to new ipl. Order highly important! */
__asm__ (".set noreorder\n");
ci->ci_ipl = newipl;
- __asm__ ("sync\n\t.set reorder\n");
+ mips_sync();
+ __asm__ (".set reorder\n");
if (CPU_IS_PRIMARY(ci))
xheart_setintrmask(newipl);