Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242431
b: refs/heads/master
c: 756cca6
h: refs/heads/master
i:
  242429: 553172c
  242427: c9f34cd
  242423: 4a42f54
  242415: b3ebe42
  242399: 1e192e4
  242367: f368aa4
  242303: 5d7b8e2
  242175: 039da57
v: v3
  • Loading branch information
Ralf Baechle committed Mar 25, 2011
1 parent a21d0e4 commit 0e360e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4bafad922ab480d5f86052e679abf5c3ca6dbfa7
refs/heads/master: 756cca61a7faddcafa582d683b46f32280eda948
22 changes: 11 additions & 11 deletions trunk/arch/mips/include/asm/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,16 @@ static inline void arch_read_lock(arch_rwlock_t *rw)
__asm__ __volatile__(
" .set noreorder # arch_read_lock \n"
"1: ll %1, %2 \n"
" bltz %1, 2f \n"
" bltz %1, 3f \n"
" addu %1, 1 \n"
" sc %1, %0 \n"
"2: sc %1, %0 \n"
" beqz %1, 1b \n"
" nop \n"
" .subsection 2 \n"
"2: ll %1, %2 \n"
" bltz %1, 2b \n"
"3: ll %1, %2 \n"
" bltz %1, 3b \n"
" addu %1, 1 \n"
" b 1b \n"
" b 2b \n"
" nop \n"
" .previous \n"
" .set reorder \n"
Expand Down Expand Up @@ -324,16 +324,16 @@ static inline void arch_write_lock(arch_rwlock_t *rw)
__asm__ __volatile__(
" .set noreorder # arch_write_lock \n"
"1: ll %1, %2 \n"
" bnez %1, 2f \n"
" bnez %1, 3f \n"
" lui %1, 0x8000 \n"
" sc %1, %0 \n"
" beqz %1, 2f \n"
"2: sc %1, %0 \n"
" beqz %1, 3f \n"
" nop \n"
" .subsection 2 \n"
"2: ll %1, %2 \n"
" bnez %1, 2b \n"
"3: ll %1, %2 \n"
" bnez %1, 3b \n"
" lui %1, 0x8000 \n"
" b 1b \n"
" b 2b \n"
" nop \n"
" .previous \n"
" .set reorder \n"
Expand Down

0 comments on commit 0e360e8

Please sign in to comment.