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 Fix bas code, use ldr
details: https://anonhg.NetBSD.org/src/rev/19fe4b126800
branches: trunk
changeset: 781526:19fe4b126800
user: matt <matt%NetBSD.org@localhost>
date: Wed Sep 12 18:23:33 2012 +0000
description:
Fix bas code, use ldr
diffstat:
common/lib/libc/arch/arm/atomic/atomic_add_64.S | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 98bcd367cc49 -r 19fe4b126800 common/lib/libc/arch/arm/atomic/atomic_add_64.S
--- a/common/lib/libc/arch/arm/atomic/atomic_add_64.S Wed Sep 12 16:26:02 2012 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_add_64.S Wed Sep 12 18:23:33 2012 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: atomic_add_64.S,v 1.1 2012/09/11 20:51:25 matt Exp $ */
+/* $NetBSD: atomic_add_64.S,v 1.2 2012/09/12 18:23:33 matt Exp $ */
/*-
- * Copyright (c) 2008 The NetBSD Foundation, Inc.
+ * Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
@@ -51,7 +51,7 @@
#else
mcr p15, 0, ip, c7, c10, 5 /* data memory barrier */
#endif
- ldmfd sp!, {r4, r5}
+ ldr r4, [sp], #4 /* restore temporary */
RET /* return old value */
END(_atomic_add_64)
ATOMIC_OP_ALIAS(atomic_add_64,_atomic_add_64)
@@ -74,7 +74,7 @@
#else
mcr p15, 0, ip, c7, c10, 5 /* data memory barrier */
#endif
- ldmfd sp!, {r4, r5}
+ ldr r4, [sp], #4 /* restore temporary */
RET /* return new value */
END(_atomic_add_64_nv)
ATOMIC_OP_ALIAS(atomic_add_64_nv,_atomic_add_64_nv)
Home |
Main Index |
Thread Index |
Old Index