Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips mips: Make sure that mutex_spin_exit work...
details: https://anonhg.NetBSD.org/src/rev/8c32d0cab31e
branches: trunk
changeset: 362453:8c32d0cab31e
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Feb 27 19:21:44 2022 +0000
description:
mips: Make sure that mutex_spin_exit works even if !DIAGNOSTIC.
The critical store has been under #ifdef DIAGNOSTIC since, uh, 2011.
diffstat:
sys/arch/mips/mips/lock_stubs_llsc.S | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 25c158e3868c -r 8c32d0cab31e sys/arch/mips/mips/lock_stubs_llsc.S
--- a/sys/arch/mips/mips/lock_stubs_llsc.S Sun Feb 27 19:00:46 2022 +0000
+++ b/sys/arch/mips/mips/lock_stubs_llsc.S Sun Feb 27 19:21:44 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lock_stubs_llsc.S,v 1.13 2020/09/26 08:21:27 simonb Exp $ */
+/* $NetBSD: lock_stubs_llsc.S,v 1.14 2022/02/27 19:21:44 riastradh Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#include <machine/asm.h>
-RCSID("$NetBSD: lock_stubs_llsc.S,v 1.13 2020/09/26 08:21:27 simonb Exp $")
+RCSID("$NetBSD: lock_stubs_llsc.S,v 1.14 2022/02/27 19:21:44 riastradh Exp $")
#include "assym.h"
@@ -279,8 +279,8 @@
INT_L t0, MTX_LOCK(a0)
beqz t0, 2f
nop
+#endif
INT_S zero, MTX_LOCK(a0)
-#endif
/*
* We need to grab this before the mutex count is incremented
Home |
Main Index |
Thread Index |
Old Index