[Git][cmucl/cmucl][master] Add comment on why RESTORE_FPU is needed.
Raymond Toy
rtoy at common-lisp.net
Sat Jan 16 16:37:16 UTC 2016
Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
6feaee2d by Raymond Toy at 2016-01-16T08:37:03Z
Add comment on why RESTORE_FPU is needed.
- - - - -
1 changed file:
- src/lisp/x86-arch.c
Changes:
=====================================
src/lisp/x86-arch.c
=====================================
--- a/src/lisp/x86-arch.c
+++ b/src/lisp/x86-arch.c
@@ -320,6 +320,12 @@ sigtrap_handler(HANDLER_ARGS)
/* This is just for info in case monitor wants to print an approx */
current_control_stack_pointer = (unsigned long *) SC_SP(os_context);
+
+ /*
+ * In many places in the switch below, we eventually throw instead
+ * of returning from the signal handler. So, just in case, set
+ * the current FPU modes from the saved context.
+ */
RESTORE_FPU(os_context);
/*
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/6feaee2df686c62509f7c2292df81899af9762ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cmucl-cvs/attachments/20160116/eba81361/attachment.html>
More information about the cmucl-cvs
mailing list