mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't set mips2.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2000-12-05 Andreas Jaeger <aj@suse.de>
|
2000-12-05 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
|
||||||
|
set mips2.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
|
* sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
|
* sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2000-12-05 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Don't set mips2.
|
||||||
|
* sysdeps/mips/pt-machine.h (testandset): Likewise.
|
||||||
|
(__compare_and_swap): Likewise.
|
||||||
|
Patches by "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>.
|
||||||
|
|
||||||
2000-11-20 Jakub Jelinek <jakub@redhat.com>
|
2000-11-20 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* Examples/ex3.c (main): Cast int to long before casting to void *.
|
* Examples/ex3.c (main): Cast int to long before casting to void *.
|
||||||
|
@ -42,8 +42,7 @@ _test_and_set (int *p, int v) __THROW
|
|||||||
int r, t;
|
int r, t;
|
||||||
|
|
||||||
__asm__ __volatile__
|
__asm__ __volatile__
|
||||||
(".set\tmips2\n"
|
("1:\n\t"
|
||||||
"1:\n\t"
|
|
||||||
"ll %0,%3\n\t"
|
"ll %0,%3\n\t"
|
||||||
".set push\n\t"
|
".set push\n\t"
|
||||||
".set noreorder\n\t"
|
".set noreorder\n\t"
|
||||||
@ -52,8 +51,7 @@ _test_and_set (int *p, int v) __THROW
|
|||||||
".set pop\n\t"
|
".set pop\n\t"
|
||||||
"sc %1,%2\n\t"
|
"sc %1,%2\n\t"
|
||||||
"beqz %1,1b\n"
|
"beqz %1,1b\n"
|
||||||
"2:\n\t"
|
"2:\n"
|
||||||
".set\tmips0"
|
|
||||||
: "=&r" (r), "=&r" (t), "=m" (*p)
|
: "=&r" (r), "=&r" (t), "=m" (*p)
|
||||||
: "m" (*p), "r" (v)
|
: "m" (*p), "r" (v)
|
||||||
: "memory");
|
: "memory");
|
||||||
|
Reference in New Issue
Block a user