Skip to content
Snippets Groups Projects
Commit 146bd146 authored by dtc's avatar dtc
Browse files

The FPU state save around the primitive halt signal handler has been

confirmed unnecessary on Linux and is now only used on FreeBSD.
parent 7e6ff84a
No related branches found
No related tags found
No related merge requests found
/* x86-arch.c -*- Mode: C; comment-column: 40 -*-
*
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/x86-arch.c,v 1.9 1998/02/19 15:19:11 dtc Exp $
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/x86-arch.c,v 1.10 1998/02/19 18:58:20 dtc Exp $
*
*/
......@@ -216,12 +216,16 @@ sigtrap_handler(HANDLER_ARGS)
case trap_Halt:
{
#if defined(__FreeBSD__)
int fpu_state[27];
fpu_save(fpu_state);
#endif
fake_foreign_function_call(context);
lose("%%primitive halt called; the party is over.\n");
undo_fake_foreign_function_call(context);
#if defined(__FreeBSD__)
fpu_restore(fpu_state);
#endif
arch_skip_instruction(context);
break;
}
......
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