Changeset 14271
- Timestamp:
- Sep 17, 2010, 3:44:10 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/source/lisp-kernel/arm-exceptions.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lisp-kernel/arm-exceptions.c
r14197 r14271 28 28 #include <strings.h> 29 29 #include <sys/mman.h> 30 #ifndef ANDROID 30 31 #include <fpu_control.h> 31 32 #include <linux/prctl.h> 33 #endif 32 34 #endif 33 35 … … 48 50 49 51 #ifdef LINUX 50 /* Some relatively recent kernels support this interface.51 If this prctl isn't supported, assume that we're always52 running with excptions enabled and "precise".53 */54 #ifndef PR_SET_FPEXC55 #define PR_SET_FPEXC 1256 #endif57 #ifndef PR_FP_EXC_DISABLED58 #define PR_FP_EXC_DISABLED 059 #endif60 #ifndef PR_FP_EXC_PRECISE61 #define PR_FP_EXC_PRECISE 362 #endif63 52 64 53 void 65 54 enable_fp_exceptions() 66 55 { 67 prctl(PR_SET_FPEXC, PR_FP_EXC_PRECISE);68 56 } 69 57 … … 71 59 disable_fp_exceptions() 72 60 { 73 prctl(PR_SET_FPEXC, PR_FP_EXC_DISABLED); 74 } 75 61 } 76 62 #endif 77 63 … … 1187 1173 natural callback_ptr; 1188 1174 area *a; 1189 natural fnreg = fn, codevector, offset;1175 natural fnreg = Rfn, codevector, offset; 1190 1176 pc where = xpPC(xp); 1191 1177 int delta;
Note:
See TracChangeset
for help on using the changeset viewer.
