From: Tomas Hruby Date: Wed, 2 Jun 2010 13:59:55 +0000 (+0000) Subject: Gracefull crash if FPU exception in kernel X-Git-Tag: v3.1.7~14 X-Git-Url: http://zhaoyanbai.com/repos/html/index.html?a=commitdiff_plain;h=463be393c272da9a41cdfc7d0354a056dd5de0ba;p=minix.git Gracefull crash if FPU exception in kernel --- diff --git a/kernel/arch/i386/mpx.S b/kernel/arch/i386/mpx.S index 4e969e6c3..bc8e926ed 100644 --- a/kernel/arch/i386/mpx.S +++ b/kernel/arch/i386/mpx.S @@ -619,8 +619,9 @@ copr_return: jmp _switch_to_user copr_not_available_in_kernel: - movl $0, (%esp) - call _panic + pushl $0 + pushl $COPROC_NOT_VECTOR + jmp exception_entry_nested _double_fault: EXCEPTION_ERR_CODE(DOUBLE_FAULT_VECTOR)