summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-10-16 04:56:12 +0000
committermiod <miod@openbsd.org>2007-10-16 04:56:12 +0000
commit8942b13947b9483e5de137b283dd0109c643140f (patch)
treee8147d55c48069369c837f7fde34308bcdb7c834
parentzero the right object, not some hunk of stack; ok henric@ (diff)
downloadwireguard-openbsd-8942b13947b9483e5de137b283dd0109c643140f.tar.xz
wireguard-openbsd-8942b13947b9483e5de137b283dd0109c643140f.zip
Fix the mtx_wantipl != IPL_NONE comparison in the ``have to spin''
MULTIPROCESSOR case in mtx_enter.
-rw-r--r--sys/arch/m88k/m88k/mutex.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/mutex.S b/sys/arch/m88k/m88k/mutex.S
index 107074f76b6..73a95bc4023 100644
--- a/sys/arch/m88k/m88k/mutex.S
+++ b/sys/arch/m88k/m88k/mutex.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: mutex.S,v 1.4 2007/05/18 16:34:31 miod Exp $ */
+/* $OpenBSD: mutex.S,v 1.5 2007/10/16 04:56:12 miod Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat.
@@ -72,7 +72,7 @@ enter_again:
enter_failed: /* the lock is not ours... */
ld r3, r4, MTX_WANTIPL
- bcnd eq0, r4, 2f
+ bcnd eq0, r3, 2f
bcnd ne0, r2, 1f /* splx(oldipl) */
bsr.n _C_LABEL(spl0)
addu r1, r1, 2f - . - 4