diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-09-29 18:54:40 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-09-29 18:54:40 +0000 |
commit | a2cee032ec1afe36876c84a6d3e297d71022838f (patch) | |
tree | c90e9fd6a8fd3e64954b624dc8a0a34eecf12f72 /sys/arch/sgi/xbow/xheart.c | |
parent | 67aac14886c5fb28e1445da5a9874ff7a03aa0c4 (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.c | 5 |
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); |