pc: check Sse (bit 25) in cpuiddx before enabling fxsr in cr4 (fixes crash on the pentium II)
This commit is contained in:
parent
e6d84a3fa6
commit
0bdfa3699d
1 changed files with 1 additions and 1 deletions
|
@ -864,7 +864,7 @@ cpuidentify(void)
|
|||
if(m->cpuiddx & Mtrr)
|
||||
mtrrsync();
|
||||
|
||||
if(m->cpuiddx & Fxsr){ /* have sse fp? */
|
||||
if((m->cpuiddx & (Sse|Fxsr)) == (Sse|Fxsr)){ /* have sse fp? */
|
||||
fpsave = fpssesave;
|
||||
fprestore = fpsserestore;
|
||||
putcr4(getcr4() | CR4Osfxsr|CR4Oxmmex);
|
||||
|
|
Loading…
Reference in a new issue