pc kernel: fix wrong simd exception mask (fixes go bootstrap)

This commit is contained in:
cinap_lenrek 2018-01-04 04:38:31 +01:00
parent 743f65c878
commit d3e54ff2d9

View file

@ -527,7 +527,7 @@ mathemu(Ureg *ureg, void*)
case FPinit:
fpinit();
if(fpsave == fpssesave)
ldmxcsr(0); /* no simd exceptions on 386 */
ldmxcsr(0x1f80); /* no simd exceptions on 386 */
while(up->fpsave == nil)
up->fpsave = mallocalign(sizeof(FPsave), FPalign, 0, 0);
up->fpstate = FPactive;