Implemented CR4 register for Winchip. Currently only Time Stamp Disable (TSD) has an effect.
Fixed stupid bug in WRMSR - MSRs can now be written with values other than zero.
This commit is contained in:
parent
63adb3a9ae
commit
262b188790
6 changed files with 49 additions and 2 deletions
|
|
@ -630,6 +630,7 @@ void resetx86()
|
|||
pc=0;
|
||||
msw=0;
|
||||
cr0=0;
|
||||
cr4 = 0;
|
||||
eflags=0;
|
||||
cgate32=0;
|
||||
loadcs(0xFFFF);
|
||||
|
|
@ -660,6 +661,7 @@ void softresetx86()
|
|||
pc=0;
|
||||
msw=0;
|
||||
cr0=0;
|
||||
cr4 = 0;
|
||||
eflags=0;
|
||||
cgate32=0;
|
||||
loadcs(0xFFFF);
|
||||
|
|
|
|||
Loading…
Reference in a new issue