Fix panics in potentially all x86bios calls on i386 since r332489.

A call to npxsave() in the exception trampolines was not relocated.
This call to a garbage address usually paniced when made, but it is only
made when the thread has used an FPU recently, and this is not the usual
case.

PR:		228755
Reviewed by:	kib
This commit is contained in:
Bruce Evans 2018-06-10 14:21:01 +00:00
parent 67580198b7
commit 09e3c9a4ec

View File

@ -67,7 +67,8 @@ ENTRY(vm86_bioscall)
pushl %edx
movl TD_PCB(%ecx),%ecx
pushl PCB_SAVEFPU(%ecx)
call npxsave
movl $npxsave,%eax
call *%eax
addl $4,%esp
popl %edx /* recover our pcb */
1: