From 82cf6e18bc5e98fa203f98534bde1549a9263e4c Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Fri, 18 Jul 2014 00:27:58 +0200 Subject: 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. --- libc/sysdeps/linux/or1k/jmpbuf-offsets.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libc/sysdeps/linux/or1k/jmpbuf-offsets.h') 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 -#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 -- cgit v1.2.3