Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Change cmpeq to cmp and add "cc" to clo...
details: https://anonhg.NetBSD.org/src/rev/58ec93d194c7
branches: trunk
changeset: 780432:58ec93d194c7
user: matt <matt%NetBSD.org@localhost>
date: Mon Jul 23 12:36:41 2012 +0000
description:
Change cmpeq to cmp and add "cc" to clobber in the ldrex/strex asm.
diffstat:
sys/arch/arm/include/lock.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 9a3daf48f07c -r 58ec93d194c7 sys/arch/arm/include/lock.h
--- a/sys/arch/arm/include/lock.h Mon Jul 23 12:15:30 2012 +0000
+++ b/sys/arch/arm/include/lock.h Mon Jul 23 12:36:41 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lock.h,v 1.18 2012/07/15 08:26:21 matt Exp $ */
+/* $NetBSD: lock.h,v 1.19 2012/07/23 12:36:41 matt Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -83,10 +83,10 @@
"1:\t"
"ldrexb\t%[__rv], [%[__ptr]]" "\n\t"
"strexb\t%[__tmp], %[__val], [%[__ptr]]" "\n\t"
- "cmpeq\t%[__tmp], #0" "\n\t"
+ "cmp\t%[__tmp], #0" "\n\t"
"bne 1b"
: [__rv] "=&r" (__rv), [__tmp] "=&r"(__tmp)
- : [__val] "r" (__val), [__ptr] "r" (__ptr) : "memory");
+ : [__val] "r" (__val), [__ptr] "r" (__ptr) : "cc", "memory");
return __rv;
#else
__asm volatile("swpb %0, %1, [%2]"
Home |
Main Index |
Thread Index |
Old Index