MFi386: revisions 1.495 and 1.496

This commit is contained in:
Yoshihiro Takahashi 2002-02-16 12:59:58 +00:00
parent 1b629611b6
commit 35c1f59123
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90726
2 changed files with 6 additions and 2 deletions

View File

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

View File

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