Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/dtrace/arm Fix dtrace_cas32 logic
details: https://anonhg.NetBSD.org/src/rev/938a29565610
branches: trunk
changeset: 327336:938a29565610
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Mar 05 03:09:17 2014 +0000
description:
Fix dtrace_cas32 logic
- compare with cmp, not new
- return old value
diffstat:
external/cddl/osnet/dev/dtrace/arm/dtrace_asm.S | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 50e1dae80f6b -r 938a29565610 external/cddl/osnet/dev/dtrace/arm/dtrace_asm.S
--- a/external/cddl/osnet/dev/dtrace/arm/dtrace_asm.S Wed Mar 05 02:18:30 2014 +0000
+++ b/external/cddl/osnet/dev/dtrace/arm/dtrace_asm.S Wed Mar 05 03:09:17 2014 +0000
@@ -89,12 +89,12 @@
msr cpsr_c, r4
ldr r5, [r0]
- cmp r5, r2
- movne r0, #0
+ cmp r5, r1
+ movne r0, r5
bne 2f
str r2, [r0]
- mov r0, #1
+ mov r0, r5
2:
msr cpsr_c, r3
Home |
Main Index |
Thread Index |
Old Index