Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/arch/arm/atomic Don't adjust return of atomi...
details: https://anonhg.NetBSD.org/src/rev/f1bbb2db4fe9
branches: trunk
changeset: 789172:f1bbb2db4fe9
user: matt <matt%NetBSD.org@localhost>
date: Sat Aug 10 18:32:06 2013 +0000
description:
Don't adjust return of atomic_inc_64 since it's void and doesn't return
anything.
diffstat:
common/lib/libc/arch/arm/atomic/atomic_inc_64.S | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (21 lines):
diff -r f871bcb035af -r f1bbb2db4fe9 common/lib/libc/arch/arm/atomic/atomic_inc_64.S
--- a/common/lib/libc/arch/arm/atomic/atomic_inc_64.S Sat Aug 10 18:28:15 2013 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_inc_64.S Sat Aug 10 18:32:06 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_inc_64.S,v 1.4 2013/08/10 18:28:15 matt Exp $ */
+/* $NetBSD: atomic_inc_64.S,v 1.5 2013/08/10 18:32:06 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -45,10 +45,7 @@
#else
mcr p15, 0, ip, c7, c10, 5 /* data memory barrier */
#endif
- mvn r2, #0 /* r2 = -1 */
- adds LO, LO, r2 /* add it */
- adc HI, HI, r2 /* add with carry */
- RET /* return orig value */
+ RET
END(_atomic_inc_64)
ATOMIC_OP_ALIAS(atomic_inc_64,_atomic_inc_64)
Home |
Main Index |
Thread Index |
Old Index