aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v32/lib/spinlock.S
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2008-01-25 11:57:28 -0500
committerJesper Nilsson <jesper.nilsson@axis.com>2008-02-08 05:06:36 -0500
commitea0af95b1c7e17541365b555a43f5e8d51ef3dff (patch)
tree4240ba2fb23239520279ec4539bbf2192e9b3ae5 /arch/cris/arch-v32/lib/spinlock.S
parentea402db97f8f9e2cfe646faf1c9d473d9f9044d1 (diff)
CRIS v32: Change lib/spinlock.S to use byte operations instead of dwords.
Diffstat (limited to 'arch/cris/arch-v32/lib/spinlock.S')
-rw-r--r--arch/cris/arch-v32/lib/spinlock.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/cris/arch-v32/lib/spinlock.S b/arch/cris/arch-v32/lib/spinlock.S
index 2437ae7f6ed2..79087ef59a1c 100644
--- a/arch/cris/arch-v32/lib/spinlock.S
+++ b/arch/cris/arch-v32/lib/spinlock.S
@@ -12,11 +12,11 @@
12 12
13cris_spin_lock: 13cris_spin_lock:
14 clearf p 14 clearf p
151: test.d [$r10] 151: test.b [$r10]
16 beq 1b 16 beq 1b
17 clearf p 17 clearf p
18 ax 18 ax
19 clear.d [$r10] 19 clear.b [$r10]
20 bcs 1b 20 bcs 1b
21 clearf p 21 clearf p
22 ret 22 ret
@@ -24,10 +24,10 @@ cris_spin_lock:
24 24
25cris_spin_trylock: 25cris_spin_trylock:
26 clearf p 26 clearf p
271: move.d [$r10], $r11 271: move.b [$r10], $r11
28 ax 28 ax
29 clear.d [$r10] 29 clear.b [$r10]
30 bcs 1b 30 bcs 1b
31 clearf p 31 clearf p
32 ret 32 ret
33 move.d $r11,$r10 33 movu.b $r11,$r10