- Pass pointer to debugprint function to the kernel in LoaderBlock->u.I386.CommonDataArea

- comment out __lldt

svn path=/branches/ros-amd64-bringup/; revision=43757
This commit is contained in:
Timo Kreuzer
2009-10-25 21:47:53 +00:00
parent 067454570d
commit 87ab5d0e6d
2 changed files with 2 additions and 2 deletions
@@ -46,7 +46,7 @@ void WinLdrSetupForNt(PLOADER_PARAMETER_BLOCK LoaderBlock,
ULONG_PTR Tss = 0;
ULONG BlockSize, NumPages;
LoaderBlock->u.I386.CommonDataArea = NULL; // Force No ABIOS support
LoaderBlock->u.I386.CommonDataArea = (PVOID)DbgPrint; // HACK
LoaderBlock->u.I386.MachineType = MACHINE_TYPE_ISA;
/* Allocate 2 pages for PCR */
@@ -342,7 +342,7 @@ WinLdrSetProcessorContext(PVOID GdtIdt, IN ULONG64 Pcr, IN ULONG64 Tss)
WinLdrSetupIdt((PVOID)((ULONG64)GdtIdt + 2048)); // HACK!
/* LDT is unused */
__lldt(0);
// __lldt(0);
/* Load selectors for DS/ES/FS/GS/SS */
Ke386SetDs(KGDT_64_DATA | RPL_MASK); // 0x2b