mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
fix Ki386InitializeTss
svn path=/branches/ros-amd64-bringup/; revision=39198
This commit is contained in:
@@ -384,6 +384,7 @@ Ki386InitializeTss(IN PKTSS64 Tss,
|
||||
TssEntry->Bits.LongMode = 0;
|
||||
TssEntry->Bits.DefaultBig = 0;
|
||||
TssEntry->Bits.Granularity = 0;
|
||||
TssEntry->MustBeZero = 0;
|
||||
|
||||
/* Descriptor base is the TSS address */
|
||||
TssEntry->BaseLow = (ULONG64)Tss & 0xffff;
|
||||
@@ -395,8 +396,11 @@ Ki386InitializeTss(IN PKTSS64 Tss,
|
||||
TssEntry->LimitLow = sizeof(KTSS64) -1;
|
||||
TssEntry->Bits.LimitHigh = 0;
|
||||
|
||||
/* Zero out the TSS */
|
||||
RtlZeroMemory(Tss, sizeof(KTSS));
|
||||
|
||||
/* FIXME: I/O Map? */
|
||||
Tss->IoMapBase = 0;
|
||||
Tss->IoMapBase = 0x68;
|
||||
|
||||
/* Setup ring 0 stack pointer */
|
||||
Tss->Rsp0 = Stack;
|
||||
|
||||
Reference in New Issue
Block a user