From a2cee032ec1afe36876c84a6d3e297d71022838f Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 29 Sep 2012 18:54:40 +0000 Subject: Proide a mips_sync() macro to wrap asm("sync"), and replace gazillions of such statements with it. --- sys/arch/sgi/xbow/xheart.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/sgi/xbow/xheart.c') 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); -- cgit v1.2.3