mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Use the kernel mode address for the gdt/idt
svn path=/branches/ros-amd64-bringup/; revision=44095
This commit is contained in:
@@ -335,10 +335,13 @@ WinLdrSetProcessorContext(PVOID GdtIdt, IN ULONG64 Pcr, IN ULONG64 Tss)
|
||||
/* Set the new PML4 */
|
||||
__writecr3((ULONGLONG)pPML4);
|
||||
|
||||
RtlZeroMemory(GdtIdt, PAGE_SIZE);
|
||||
/* Get kernel mode address of gdt / idt */
|
||||
GdtIdt = (PVOID)((LONG64)GdtIdt + KSEG0_BASE);
|
||||
|
||||
/* Create gdt entries and load gdtr */
|
||||
WinLdrSetupGdt(GdtIdt, Tss);
|
||||
|
||||
/* Copy old Idt and set idtr */
|
||||
WinLdrSetupIdt((PVOID)((ULONG64)GdtIdt + 2048)); // HACK!
|
||||
|
||||
/* LDT is unused */
|
||||
|
||||
Reference in New Issue
Block a user