diff options
author | jeff <jeff@FreeBSD.org> | 2003-04-01 00:16:32 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-04-01 00:16:32 +0000 |
commit | 56865cc54968bbe0d21f2909d13cfade62bb789d (patch) | |
tree | 682b9ad2a2d1ee76ebbbff563571164038953b8e /sys/amd64 | |
parent | 23844ff0236ecbb1ed382511485751abcaee5859 (diff) | |
download | FreeBSD-src-56865cc54968bbe0d21f2909d13cfade62bb789d.zip FreeBSD-src-56865cc54968bbe0d21f2909d13cfade62bb789d.tar.gz |
- 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
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/fpu.c | 3 | ||||
-rw-r--r-- | sys/amd64/isa/npx.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index cb7d53d..9d11e9e 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.c @@ -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) diff --git a/sys/amd64/isa/npx.c b/sys/amd64/isa/npx.c index cb7d53d..9d11e9e 100644 --- a/sys/amd64/isa/npx.c +++ b/sys/amd64/isa/npx.c @@ -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) |