aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/bitops.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/lib/bitops.h')
-rw-r--r--arch/arm/lib/bitops.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/lib/bitops.h b/arch/arm/lib/bitops.h
index 6976e60e47cb..2036ff15bda9 100644
--- a/arch/arm/lib/bitops.h
+++ b/arch/arm/lib/bitops.h
@@ -7,7 +7,7 @@
71: ldrexb r2, [r1] 71: ldrexb r2, [r1]
8 \instr r2, r2, r3 8 \instr r2, r2, r3
9 strexb r0, r2, [r1] 9 strexb r0, r2, [r1]
10 cmpne r0, #0 10 cmp r0, #0
11 bne 1b 11 bne 1b
12 mov pc, lr 12 mov pc, lr
13 .endm 13 .endm
@@ -19,9 +19,9 @@
19 mov r3, r2, lsl r3 @ create mask 19 mov r3, r2, lsl r3 @ create mask
201: ldrexb r2, [r1] 201: ldrexb r2, [r1]
21 ands r0, r2, r3 @ save old value of bit 21 ands r0, r2, r3 @ save old value of bit
22 \instr ip, r2, r3 @ toggle bit 22 \instr r2, r2, r3 @ toggle bit
23 strexb r2, ip, [r1] 23 strexb ip, r2, [r1]
24 cmp r2, #0 24 cmp ip, #0
25 bne 1b 25 bne 1b
26 cmp r0, #0 26 cmp r0, #0
27 movne r0, #1 27 movne r0, #1