Author: tkreuzer
Date: Thu Jan 29 09:56:54 2009
New Revision: 39198
URL:
http://svn.reactos.org/svn/reactos?rev=39198&view=rev
Log:
fix Ki386InitializeTss
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/cpu.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/cpu.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/cpu.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/cpu.c [iso-8859-1] Thu Jan 29
09:56:54 2009
@@ -384,6 +384,7 @@
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 @@
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;