From f4cd08de015fb504a60c3d1153891bd9390ed9d5 Mon Sep 17 00:00:00 2001 From: brooks Date: Thu, 22 Jan 2015 21:17:58 +0000 Subject: MFC r274816: Add FPU support for MIPS setjmp(3)/longjmp(3). This change saves/restores the callee-saved MIPS floating point registers as documented by the o32/n32/n64 spec ("MIPSpro N32 ABI Handbook", Table 2-1) for the _setjmp(3), _longjmp(3), setjmp(3) and longjmp(3) C library functions. This is only included when the C library is built with hardware floating point support (or when "SOFTFLOAT" is not defined). Submitted by: sson Sponsored by: DARPA, AFRL --- sys/mips/include/asm.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sys/mips') diff --git a/sys/mips/include/asm.h b/sys/mips/include/asm.h index 551d02c..3b0c49a 100644 --- a/sys/mips/include/asm.h +++ b/sys/mips/include/asm.h @@ -707,6 +707,20 @@ _C_LABEL(x): #define _JB_SIGMASK 13 +#define _JB_FPREG_F20 14 +#define _JB_FPREG_F21 15 +#define _JB_FPREG_F22 16 +#define _JB_FPREG_F23 17 +#define _JB_FPREG_F24 18 +#define _JB_FPREG_F25 19 +#define _JB_FPREG_F26 20 +#define _JB_FPREG_F27 21 +#define _JB_FPREG_F28 22 +#define _JB_FPREG_F29 23 +#define _JB_FPREG_F30 24 +#define _JB_FPREG_F31 25 +#define _JB_FPREG_FCSR 26 + /* * Various macros for dealing with TLB hazards * (a) why so many? -- cgit v1.1