mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
- In npxgetregs() use the td argument to save the fpu state from and not
curthread. Nothing currently depends on this behavior. - Clean up an extra newline. Obtained from: bde
This commit is contained in:
parent
a9b34138dc
commit
fb8aaa76c7
3 changed files with 3 additions and 6 deletions
|
|
@ -960,9 +960,8 @@ npxgetregs(td, addr)
|
|||
bzero(addr, sizeof(*addr));
|
||||
return (_MC_FPOWNED_NONE);
|
||||
}
|
||||
|
||||
s = intr_disable();
|
||||
if (curthread == PCPU_GET(fpcurthread)) {
|
||||
if (td == PCPU_GET(fpcurthread)) {
|
||||
fpusave(addr);
|
||||
#ifdef CPU_ENABLE_SSE
|
||||
if (!cpu_fxsr)
|
||||
|
|
|
|||
|
|
@ -960,9 +960,8 @@ npxgetregs(td, addr)
|
|||
bzero(addr, sizeof(*addr));
|
||||
return (_MC_FPOWNED_NONE);
|
||||
}
|
||||
|
||||
s = intr_disable();
|
||||
if (curthread == PCPU_GET(fpcurthread)) {
|
||||
if (td == PCPU_GET(fpcurthread)) {
|
||||
fpusave(addr);
|
||||
#ifdef CPU_ENABLE_SSE
|
||||
if (!cpu_fxsr)
|
||||
|
|
|
|||
|
|
@ -960,9 +960,8 @@ npxgetregs(td, addr)
|
|||
bzero(addr, sizeof(*addr));
|
||||
return (_MC_FPOWNED_NONE);
|
||||
}
|
||||
|
||||
s = intr_disable();
|
||||
if (curthread == PCPU_GET(fpcurthread)) {
|
||||
if (td == PCPU_GET(fpcurthread)) {
|
||||
fpusave(addr);
|
||||
#ifdef CPU_ENABLE_SSE
|
||||
if (!cpu_fxsr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue