diff options
| author | KATO Takenori <kato@FreeBSD.org> | 2001-02-13 10:04:32 +0000 |
|---|---|---|
| committer | KATO Takenori <kato@FreeBSD.org> | 2001-02-13 10:04:32 +0000 |
| commit | 70acfed27c8557553cab84c544cd3bb9d61a5faf (patch) | |
| tree | df724af17b26f21781a3eeec23f34362b74210e2 /sys | |
| parent | 47dec7817079bb6ee3119b9b800b3fcd08fd6ac6 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/pc98/pc98/npx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/pc98/pc98/npx.c b/sys/pc98/pc98/npx.c index 2625afb26d67..75176b30dc09 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); } |
