- 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
3e36051ca6
commit
456e72c5b2
@ -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 New Issue
Block a user