Skip to content

Commit

Permalink
CRIS v32: Change lib/spinlock.S to use byte operations instead of dwo…
Browse files Browse the repository at this point in the history
…rds.
  • Loading branch information
jniax committed Feb 8, 2008
1 parent ea402db commit ea0af95
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 143 deletions.
96 changes: 0 additions & 96 deletions arch/cris/arch-v32/kernel/vcs_hook.c

This file was deleted.

42 changes: 0 additions & 42 deletions arch/cris/arch-v32/kernel/vcs_hook.h

This file was deleted.

10 changes: 5 additions & 5 deletions arch/cris/arch-v32/lib/spinlock.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@

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
nop

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

0 comments on commit ea0af95

Please sign in to comment.