Set up intrframe correctly for FPU exceptions again
authortholo <tholo@openbsd.org>
Fri, 7 Feb 1997 08:05:01 +0000 (08:05 +0000)
committertholo <tholo@openbsd.org>
Fri, 7 Feb 1997 08:05:01 +0000 (08:05 +0000)
sys/arch/i386/i386/locore.s

index 74f8738..19a3d16 100644 (file)
@@ -2036,13 +2036,11 @@ IDTVEC(fpu)
        pushl   $0                      # dummy error code
        pushl   $T_ASTFLT
        INTRENTRY
-#if 0
-       pushl   _cpl                    # this is apparently not used for anything
-#endif
-       pushl   %esp
+       pushl   _cpl                    # if_ppl in intrframe
+       pushl   %esp                    # push address of intrframe
        incl    _cnt+V_TRAP
        call    _npxintr
-       addl    $8,%esp
+       addl    $8,%esp                 # pop address and if_ppl
        INTRFASTEXIT
 #else
        ZTRAP(T_ARITHTRAP)