Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.

This commit is contained in:
Andreas Jaeger 2000-12-05 21:28:04 +00:00
parent 2e3b99764a
commit f172bca008
3 changed files with 4 additions and 7 deletions

View File

@ -3,7 +3,7 @@
* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Don't set mips2. * sysdeps/mips/pspinlock.c (__pthread_spin_lock): Don't set mips2.
* sysdeps/mips/pt-machine.h (testandset): Likewise. * sysdeps/mips/pt-machine.h (testandset): Likewise.
(__compare_and_swap): Likewise. (__compare_and_swap): Likewise.
Patches by "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>. 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>

View File

@ -32,8 +32,7 @@ __pthread_spin_lock (pthread_spinlock_t *lock)
unsigned int tmp; unsigned int tmp;
asm volatile asm volatile
(".set mips2\n\t" ("\t\t\t# spin_lock\n\t"
"\t\t\t# spin_lock\n\t"
"1:\n\t" "1:\n\t"
"ll %1,%2\n\t" "ll %1,%2\n\t"
".set push\n\t" ".set push\n\t"

View File

@ -41,8 +41,7 @@ testandset (int *spinlock)
long int ret, temp; long int ret, temp;
__asm__ __volatile__ __asm__ __volatile__
(".set mips2\n\t" ("/* Inline spinlock test & set */\n\t"
"/* Inline spinlock test & set */\n\t"
"1:\n\t" "1:\n\t"
"ll %0,%3\n\t" "ll %0,%3\n\t"
".set push\n\t" ".set push\n\t"
@ -88,8 +87,7 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
long int ret; long int ret;
__asm__ __volatile__ __asm__ __volatile__
(".set mips2\n\t" ("/* Inline compare & swap */\n\t"
"/* Inline compare & swap */\n\t"
"1:\n\t" "1:\n\t"
"ll %0,%4\n\t" "ll %0,%4\n\t"
".set push\n" ".set push\n"