diff options
author | Andreas Jaeger <aj@suse.de> | 2004-11-24 04:33:22 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2004-11-24 04:33:22 +0000 |
commit | cdb7b96289c0605afe393a69a5865a1cedf072dc (patch) | |
tree | 2542fa88a190dd99b031b5a243712cc71292dffe /linuxthreads/sysdeps/mips/pt-machine.h | |
parent | 42586dce0327cd294aa28dc74a2d73eb1c10da88 (diff) | |
download | glibc-cdb7b96289c0605afe393a69a5865a1cedf072dc.tar.gz glibc-cdb7b96289c0605afe393a69a5865a1cedf072dc.tar.xz glibc-cdb7b96289c0605afe393a69a5865a1cedf072dc.zip |
Include <sgidefs.h>. Use _ABIO32, _ABIN32 and _ABI64 for ABI selection throughout.
Diffstat (limited to 'linuxthreads/sysdeps/mips/pt-machine.h')
-rw-r--r-- | linuxthreads/sysdeps/mips/pt-machine.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/linuxthreads/sysdeps/mips/pt-machine.h b/linuxthreads/sysdeps/mips/pt-machine.h index c2f448e4be..96f7a7f8c6 100644 --- a/linuxthreads/sysdeps/mips/pt-machine.h +++ b/linuxthreads/sysdeps/mips/pt-machine.h @@ -24,9 +24,8 @@ #ifndef _PT_MACHINE_H #define _PT_MACHINE_H 1 -#include <sys/tas.h> - #include <sgidefs.h> +#include <sys/tas.h> #ifndef PT_EI # define PT_EI extern inline __attribute__ ((always_inline)) @@ -63,10 +62,10 @@ __compare_and_swap (long int *p, long int oldval, long int newval) ("/* Inline compare & swap */\n" "1:\n\t" ".set push\n\t" -#if _MIPS_SIM == _MIPS_SIM_ABI32 +#if _MIPS_SIM == _ABIO32 ".set mips2\n\t" #endif -#if _MIPS_SIM == _MIPS_SIM_ABI64 +#if _MIPS_SIM == _ABI64 "lld %1,%5\n\t" #else "ll %1,%5\n\t" @@ -74,7 +73,7 @@ __compare_and_swap (long int *p, long int oldval, long int newval) "move %0,$0\n\t" "bne %1,%3,2f\n\t" "move %0,%4\n\t" -#if _MIPS_SIM == _MIPS_SIM_ABI64 +#if _MIPS_SIM == _ABI64 "scd %0,%2\n\t" #else "sc %0,%2\n\t" |