summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-10-25 15:31:13 +0000
committerjhb <jhb@FreeBSD.org>2010-10-25 15:31:13 +0000
commit9bbda5d7a46e0dabfbb339800c78393dac8a28f9 (patch)
treed54b850663f4bfd90fc51ff14a0bdbcad3be37f5 /sys/i386/isa
parent5979f73be6079303e602db1898bf020384382503 (diff)
downloadFreeBSD-src-9bbda5d7a46e0dabfbb339800c78393dac8a28f9.zip
FreeBSD-src-9bbda5d7a46e0dabfbb339800c78393dac8a28f9.tar.gz
Use 'saveintr' instead of 'savecrit' or 'eflags' to hold the state returned
by intr_disable(). Requested by: bde
Diffstat (limited to 'sys/i386/isa')
-rw-r--r--sys/i386/isa/npx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c
index 72a6aa8..f8dc11c 100644
--- a/sys/i386/isa/npx.c
+++ b/sys/i386/isa/npx.c
@@ -343,7 +343,7 @@ void
npxinit(void)
{
static union savefpu dummy;
- register_t savecrit;
+ register_t saveintr;
u_short control;
if (!hw_float)
@@ -355,7 +355,7 @@ npxinit(void)
*
* It is too early for critical_enter() to work on AP.
*/
- savecrit = intr_disable();
+ saveintr = intr_disable();
npxsave(&dummy);
stop_emulating();
#ifdef CPU_ENABLE_SSE
@@ -366,7 +366,7 @@ npxinit(void)
control = __INITIAL_NPXCW__;
fldcw(control);
start_emulating();
- intr_restore(savecrit);
+ intr_restore(saveintr);
}
/*
OpenPOWER on IntegriCloud