summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/or1k/jmpbuf-offsets.h
diff options
context:
space:
mode:
authorChristian Svensson <blue@cmd.nu>2014-07-18 00:27:58 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-11-25 17:46:25 +0100
commit82cf6e18bc5e98fa203f98534bde1549a9263e4c (patch)
treef1b5f33b9a7f6b1ccd90e945f092dcb5410cdd78 /libc/sysdeps/linux/or1k/jmpbuf-offsets.h
parent42329aab078bbfd7884c9abadf4617db64be21a2 (diff)
setjmp/longjmp saves only non-call clobbered regs
Previously we saved everything, but we only need to save the registers that are promised to be untouched by the setjmp call.
Diffstat (limited to 'libc/sysdeps/linux/or1k/jmpbuf-offsets.h')
-rw-r--r--libc/sysdeps/linux/or1k/jmpbuf-offsets.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/or1k/jmpbuf-offsets.h b/libc/sysdeps/linux/or1k/jmpbuf-offsets.h
index 8cd82a104..d9643b186 100644
--- a/libc/sysdeps/linux/or1k/jmpbuf-offsets.h
+++ b/libc/sysdeps/linux/or1k/jmpbuf-offsets.h
@@ -1,8 +1,3 @@
#include <features.h>
-#define JB_SR 0
-#define JB_GPRS 1
-#define JB_SP 1
-#define JB_LR 9
-#define JB_RV 11
-#define JB_SIZE (32*4)
+#define JB_SP 0