Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/riscv/include Fix c&p error.
details: https://anonhg.NetBSD.org/src/rev/842ab92d3a4a
branches: trunk
changeset: 339087:842ab92d3a4a
user: matt <matt%NetBSD.org@localhost>
date: Fri Jun 26 14:20:11 2015 +0000
description:
Fix c&p error.
diffstat:
sys/arch/riscv/include/lock.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d4a4951a1a2b -r 842ab92d3a4a sys/arch/riscv/include/lock.h
--- a/sys/arch/riscv/include/lock.h Fri Jun 26 11:25:22 2015 +0000
+++ b/sys/arch/riscv/include/lock.h Fri Jun 26 14:20:11 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lock.h,v 1.2 2015/03/29 09:43:26 matt Exp $ */
+/* $NetBSD: lock.h,v 1.3 2015/06/26 14:20:11 matt Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -88,7 +88,7 @@
static __inline int __unused
__cpu_simple_lock_try(__cpu_simple_lock_t *__ptr)
{
- return __atomic_exchange_n(__ptr, __SIMPLELOCK_LOCKED, __ATOMIC_ACQUIRE) == __SIMPLELOCK_LOCKED;
+ return __atomic_exchange_n(__ptr, __SIMPLELOCK_LOCKED, __ATOMIC_ACQUIRE) == __SIMPLELOCK_UNLOCKED;
}
static __inline void __unused
Home |
Main Index |
Thread Index |
Old Index