summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2002-02-16 12:59:58 +0000
committernyan <nyan@FreeBSD.org>2002-02-16 12:59:58 +0000
commit6ec5b39ebdd859578bcb053f13f8009b85cde468 (patch)
tree7bfd02bae6ed5d8627af6f446d33c5c745422025 /sys/pc98
parent1a72ba014d2f2ee50e2125b80a407d2295267911 (diff)
downloadFreeBSD-src-6ec5b39ebdd859578bcb053f13f8009b85cde468.zip
FreeBSD-src-6ec5b39ebdd859578bcb053f13f8009b85cde468.tar.gz
MFi386: revisions 1.495 and 1.496
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/i386/machdep.c4
-rw-r--r--sys/pc98/pc98/machdep.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index d34ed62..e91eaf8 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -1761,7 +1761,7 @@ init386(first)
gdt_segs[GCODE_SEL].ssd_limit = atop(0 - 1);
gdt_segs[GDATA_SEL].ssd_limit = atop(0 - 1);
#ifdef SMP
- pc = &SMP_prvspace[0];
+ pc = &SMP_prvspace[0].pcpu;
gdt_segs[GPRIV_SEL].ssd_limit =
atop(sizeof(struct privatespace) - 1);
#else
@@ -2082,6 +2082,8 @@ fill_fpregs_xmm(sv_xmm, sv_87)
register struct envxmm *penv_xmm = &sv_xmm->sv_env;
int i;
+ bzero(sv_87, sizeof(*sv_87));
+
/* FPU control/status */
penv_87->en_cw = penv_xmm->en_cw;
penv_87->en_sw = penv_xmm->en_sw;
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index d34ed62..e91eaf8 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -1761,7 +1761,7 @@ init386(first)
gdt_segs[GCODE_SEL].ssd_limit = atop(0 - 1);
gdt_segs[GDATA_SEL].ssd_limit = atop(0 - 1);
#ifdef SMP
- pc = &SMP_prvspace[0];
+ pc = &SMP_prvspace[0].pcpu;
gdt_segs[GPRIV_SEL].ssd_limit =
atop(sizeof(struct privatespace) - 1);
#else
@@ -2082,6 +2082,8 @@ fill_fpregs_xmm(sv_xmm, sv_87)
register struct envxmm *penv_xmm = &sv_xmm->sv_env;
int i;
+ bzero(sv_87, sizeof(*sv_87));
+
/* FPU control/status */
penv_87->en_cw = penv_xmm->en_cw;
penv_87->en_sw = penv_xmm->en_sw;
OpenPOWER on IntegriCloud