From 331e4823a2c8db95e5fa5842a6136db61e55d868 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 25 Oct 2002 19:12:16 +0000 Subject: [PATCH] Finish fixing the 5.x FPU code for dealing with signal handlers. Obtained from: bde --- sys/amd64/amd64/fpu.c | 1 + sys/amd64/isa/npx.c | 1 + sys/i386/isa/npx.c | 1 + 3 files changed, 3 insertions(+) diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index eeb71f9db6b..3de758116fe 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.c @@ -1003,6 +1003,7 @@ npxsetregs(td, addr) intr_restore(s); bcopy(addr, &td->td_pcb->pcb_save, sizeof(*addr)); } + curthread->td_pcb->pcb_flags |= PCB_NPXINITDONE; } static void diff --git a/sys/amd64/isa/npx.c b/sys/amd64/isa/npx.c index eeb71f9db6b..3de758116fe 100644 --- a/sys/amd64/isa/npx.c +++ b/sys/amd64/isa/npx.c @@ -1003,6 +1003,7 @@ npxsetregs(td, addr) intr_restore(s); bcopy(addr, &td->td_pcb->pcb_save, sizeof(*addr)); } + curthread->td_pcb->pcb_flags |= PCB_NPXINITDONE; } static void diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c index eeb71f9db6b..3de758116fe 100644 --- a/sys/i386/isa/npx.c +++ b/sys/i386/isa/npx.c @@ -1003,6 +1003,7 @@ npxsetregs(td, addr) intr_restore(s); bcopy(addr, &td->td_pcb->pcb_save, sizeof(*addr)); } + curthread->td_pcb->pcb_flags |= PCB_NPXINITDONE; } static void