mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-19 07:00:08 +00:00
(_test_and_set): Don't set mips2.
This commit is contained in:
parent
94f1fa3185
commit
ae8186b5e3
@ -42,8 +42,7 @@ _test_and_set (int *p, int v) __THROW
|
||||
int r, t;
|
||||
|
||||
__asm__ __volatile__
|
||||
(".set\tmips2\n"
|
||||
"1:\n\t"
|
||||
("1:\n\t"
|
||||
"ll %0,%3\n\t"
|
||||
".set push\n\t"
|
||||
".set noreorder\n\t"
|
||||
@ -52,8 +51,7 @@ _test_and_set (int *p, int v) __THROW
|
||||
".set pop\n\t"
|
||||
"sc %1,%2\n\t"
|
||||
"beqz %1,1b\n"
|
||||
"2:\n\t"
|
||||
".set\tmips0"
|
||||
"2:\n"
|
||||
: "=&r" (r), "=&r" (t), "=m" (*p)
|
||||
: "m" (*p), "r" (v)
|
||||
: "memory");
|
||||
|
Loading…
Reference in New Issue
Block a user