diff options
author | kato <kato@FreeBSD.org> | 2001-07-19 09:07:19 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 2001-07-19 09:07:19 +0000 |
commit | c1a57e4c693ca4cfa1f8ed785ba0d092e2a58a45 (patch) | |
tree | 399795eb41a0ce9fe86e18895e6eb5d4ac7f8ab6 | |
parent | a04b084fea3a8ef5c5af1d0e7f6b2febee035b6f (diff) | |
download | FreeBSD-src-c1a57e4c693ca4cfa1f8ed785ba0d092e2a58a45.zip FreeBSD-src-c1a57e4c693ca4cfa1f8ed785ba0d092e2a58a45.tar.gz |
Merged from sys/i386/isa/npx.c revision 1.106.
-rw-r--r-- | sys/pc98/pc98/npx.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/sys/pc98/pc98/npx.c b/sys/pc98/pc98/npx.c index 8496c37..3b89718 100644 --- a/sys/pc98/pc98/npx.c +++ b/sys/pc98/pc98/npx.c @@ -617,7 +617,7 @@ void npxinit(control) u_short control; { - union savefpu dummy; + static union savefpu dummy; critical_t savecrit; if (!npx_exists) @@ -979,30 +979,21 @@ static void fpusave(addr) union savefpu *addr; { - static struct savexmm svxmm[MAXCPU]; - u_char oncpu = PCPU_GET(cpuid); if (!cpu_fxsr) fnsave(addr); - else { - fxsave(&svxmm[oncpu]); - bcopy(&svxmm[oncpu], addr, sizeof(struct savexmm)); - } + else + fxsave(addr); } static void fpurstor(addr) union savefpu *addr; { - static struct savexmm svxmm[MAXCPU]; - u_char oncpu = PCPU_GET(cpuid); - if (!cpu_fxsr) frstor(addr); - else { - bcopy(addr, &svxmm[oncpu], sizeof (struct savexmm)); - fxrstor(&svxmm[oncpu]); - } + else + fxrstor(addr); } #ifdef I586_CPU_XXX |