]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/cris/arch-v32/lib/spinlock.S
CRIS v32: Change lib/spinlock.S to use byte operations instead of dwords.
[linux-2.6-omap-h63xx.git] / arch / cris / arch-v32 / lib / spinlock.S
index 2437ae7f6ed23481154c016e30a4166d36cbee92..79087ef59a1cfdf6e1286f0457798c52f3e2dd3c 100644 (file)
 
 cris_spin_lock:
        clearf  p
-1:     test.d  [$r10]
+1:     test.b  [$r10]
        beq     1b
        clearf  p
        ax
-       clear.d [$r10]
+       clear.b [$r10]
        bcs     1b
        clearf  p
        ret
@@ -24,10 +24,10 @@ cris_spin_lock:
 
 cris_spin_trylock:
        clearf  p
-1:     move.d  [$r10], $r11
+1:     move.b  [$r10], $r11
        ax
-       clear.d [$r10]
+       clear.b [$r10]
         bcs    1b
         clearf p
        ret
-       move.d  $r11,$r10
+       movu.b  $r11,$r10