Skip to content
Snippets Groups Projects
Commit 6feaee2d authored by Raymond Toy's avatar Raymond Toy
Browse files

Add comment on why RESTORE_FPU is needed.

parent 17932a00
No related branches found
No related tags found
No related merge requests found
...@@ -320,6 +320,12 @@ sigtrap_handler(HANDLER_ARGS) ...@@ -320,6 +320,12 @@ sigtrap_handler(HANDLER_ARGS)
/* This is just for info in case monitor wants to print an approx */ /* This is just for info in case monitor wants to print an approx */
current_control_stack_pointer = (unsigned long *) SC_SP(os_context); 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); RESTORE_FPU(os_context);
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment