diff options
| author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 15:52:41 +0000 |
|---|---|---|
| committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 15:52:41 +0000 |
| commit | 43ee769f540704ccfc4e2a12ba11ed4b6eece196 (patch) | |
| tree | 59e0fec96510e3f8c2cdb6dacbfb3031058ed092 /libc/sysdeps/linux/mips/bsd-_setjmp.S | |
| parent | 80ee234a186cf81220a37cd561fb8c91f9e9cadc (diff) | |
| download | uClibc-alpine-43ee769f540704ccfc4e2a12ba11ed4b6eece196.tar.bz2 uClibc-alpine-43ee769f540704ccfc4e2a12ba11ed4b6eece196.tar.xz | |
Synch libc mips specific with trunk
Diffstat (limited to 'libc/sysdeps/linux/mips/bsd-_setjmp.S')
| -rw-r--r-- | libc/sysdeps/linux/mips/bsd-_setjmp.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/bsd-_setjmp.S b/libc/sysdeps/linux/mips/bsd-_setjmp.S index e03c05ced..6853dea98 100644 --- a/libc/sysdeps/linux/mips/bsd-_setjmp.S +++ b/libc/sysdeps/linux/mips/bsd-_setjmp.S @@ -22,6 +22,7 @@ in setjmp doesn't clobber the state restored by longjmp. */ #include <sys/regdef.h> +#include <sys/asm.h> #ifdef __PIC__ .option pic2 @@ -35,10 +36,16 @@ _setjmp: #ifdef __PIC__ +#if (_MIPS_SIM == _MIPS_SIM_ABI32) .set noreorder .cpload t9 .set reorder la t9, __sigsetjmp +#else + .cpsetup t9, v0, _setjmp + PTR_LA t9, __sigsetjmp + .cpreturn +#endif #endif move a1,zero /* Pass a second argument of zero. */ #ifdef __PIC__ |
