mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 10:40:19 -04:00
Merged from sys/i386/isa/npx.c revision 1.90.
This commit is contained in:
parent
47dec78170
commit
70acfed27c
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue