diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-02-15 12:04:45 -0200 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-04-17 15:14:45 -0300 |
commit | a3ae315a8f824f004e15327c388ef9c408ec116b (patch) | |
tree | 375f9d3b78ceb376d1dbc0510190264601639ecc /sysdeps/unix/sysv/linux/mips/getcontext.S | |
parent | ffe8a9a8318e1db225b22da8bc067408494bac5c (diff) | |
download | glibc-a3ae315a8f824f004e15327c388ef9c408ec116b.zip glibc-a3ae315a8f824f004e15327c388ef9c408ec116b.tar.gz glibc-a3ae315a8f824f004e15327c388ef9c408ec116b.tar.bz2 |
mips: Remove rt_sigreturn usage on context function
Similar to powerpc, mips also issues rt_sigreturn for setcontext
case the v0 value saved is not the one set by setcontext or
makecontext. As for powerpc, it is intention is no really supported
since setcontext is not async-signal-safe.
Checked the context tests on mips64-linux-gnu and mips-linux-gnu.
* sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
the magic flag store.
* sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
Likewise.
* sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
Likewise.
* sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
Remove rt_sigreturn call.
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips/getcontext.S')
-rw-r--r-- | sysdeps/unix/sysv/linux/mips/getcontext.S | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/getcontext.S b/sysdeps/unix/sysv/linux/mips/getcontext.S index 4f7f89e..015bd5b 100644 --- a/sysdeps/unix/sysv/linux/mips/getcontext.S +++ b/sysdeps/unix/sysv/linux/mips/getcontext.S @@ -78,11 +78,6 @@ NESTED (__getcontext, FRAMESZ, ra) .set at #endif - /* Store a magic flag. */ - li v1, 1 - /* zero */ - REG_S v1, (MCONTEXT_GREGOFF + 0 * MCONTEXT_GREGSZ + MCONTEXT_GREGS)(a0) - REG_S s0, (MCONTEXT_GREGOFF + 16 * MCONTEXT_GREGSZ + MCONTEXT_GREGS)(a0) REG_S s1, (MCONTEXT_GREGOFF + 17 * MCONTEXT_GREGSZ + MCONTEXT_GREGS)(a0) REG_S s2, (MCONTEXT_GREGOFF + 18 * MCONTEXT_GREGSZ + MCONTEXT_GREGS)(a0) |