Index: /trunk/ccl/lisp-kernel/x86-spentry64.s
===================================================================
--- /trunk/ccl/lisp-kernel/x86-spentry64.s	(revision 5015)
+++ /trunk/ccl/lisp-kernel/x86-spentry64.s	(revision 5016)
@@ -4039,5 +4039,11 @@
 	__(clr %ra0)
 	__(pxor %fpzero,%fpzero)
-        __(stmxcsr %rcontext:tcr.ffi_exception)
+        /* Darwin's math library seems to be pretty casual
+           about causing spurious FP exceptions */
+        __ifdef([DARWIN])
+         __(movl %arg_x_l,%rcontext:tcr.ffi_exception)
+        __else
+         __(stmxcsr %rcontext:tcr.ffi_exception)
+        __endif
 	__(movq $TCR_STATE_LISP,%rcontext:tcr.valence)
 	__(movq %rcontext:tcr.save_vsp,%rsp)
