- 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:
jeff 2003-04-01 00:16:32 +00:00
parent 23844ff023
commit 56865cc549
3 changed files with 3 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)