summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>2001-02-13 10:04:32 +0000
committerkato <kato@FreeBSD.org>2001-02-13 10:04:32 +0000
commite75b8028c1905ba6a707f6c4dd9aa4b00a64d953 (patch)
tree7880234f757563e3309d05bde0460726a047e1db /sys
parentb5cd63f6167cf47de4d4e915c1e0a0f08b89bbb6 (diff)
downloadFreeBSD-src-e75b8028c1905ba6a707f6c4dd9aa4b00a64d953.zip
FreeBSD-src-e75b8028c1905ba6a707f6c4dd9aa4b00a64d953.tar.gz
Merged from sys/i386/isa/npx.c revision 1.90.
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/pc98/npx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/pc98/pc98/npx.c b/sys/pc98/pc98/npx.c
index 2625afb..75176b3 100644
--- a/sys/pc98/pc98/npx.c
+++ b/sys/pc98/pc98/npx.c
@@ -850,6 +850,8 @@ npx_intr(dummy)
int
npxdna()
{
+ int s;
+
if (!npx_exists)
return (0);
if (PCPU_GET(npxproc) != NULL) {
@@ -857,6 +859,8 @@ npxdna()
PCPU_GET(npxproc), curproc);
panic("npxdna");
}
+ s = save_intr();
+ disable_intr();
stop_emulating();
/*
* Record new context early in case frstor causes an IRQ13.
@@ -876,6 +880,7 @@ npxdna()
* first FPU instruction after a context switch.
*/
frstor(&PCPU_GET(curpcb)->pcb_savefpu);
+ restore_intr(s);
return (1);
}
OpenPOWER on IntegriCloud