aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-01-06 02:23:50 -0800
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-01-06 02:23:50 -0800
commitc4923f58a887640ee640e720a605cd053171ae60 (patch)
treea82ef4cf2c53038f5939f1dbf22f39632956abc7 /newlib
parent64ddcec132b1a85def4bb73dc989ada9cf86de16 (diff)
downloadriscv-gnu-toolchain-c4923f58a887640ee640e720a605cd053171ae60.zip
riscv-gnu-toolchain-c4923f58a887640ee640e720a605cd053171ae60.tar.gz
riscv-gnu-toolchain-c4923f58a887640ee640e720a605cd053171ae60.tar.bz2
glibc, newlib: don't save/restore tp on get/setcontext
Thread-local storage shouldn't be affected by these calls.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/newlib/libc/machine/riscv/setjmp.S2
1 files changed, 0 insertions, 2 deletions
diff --git a/newlib/newlib/libc/machine/riscv/setjmp.S b/newlib/newlib/libc/machine/riscv/setjmp.S
index 2ddc59f..377435b 100644
--- a/newlib/newlib/libc/machine/riscv/setjmp.S
+++ b/newlib/newlib/libc/machine/riscv/setjmp.S
@@ -25,7 +25,6 @@ setjmp:
REG_S s10,11*SZREG(a0)
REG_S s11,12*SZREG(a0)
REG_S sp, 13*SZREG(a0)
- REG_S tp, 14*SZREG(a0)
#ifdef __riscv_hard_float
frsr a3
@@ -66,7 +65,6 @@ longjmp:
REG_L s10,11*SZREG(a0)
REG_L s11,12*SZREG(a0)
REG_L sp, 13*SZREG(a0)
- REG_L tp, 14*SZREG(a0)
#ifdef __riscv_hard_float
REG_L a3, 15*SZREG(a0)