[FREELDR] Fix wrong segment register at lgdt instruction in amd64.S

This commit is contained in:
Daniel Victor 2024-12-11 19:35:57 -03:00 committed by Timo Kreuzer
parent 2186ce3d58
commit d72864de95

View file

@ -67,11 +67,7 @@ Msg_LongModeSupported:
call writestr call writestr
/* Load the GDT */ /* Load the GDT */
#ifdef _USE_ML lgdt lXdtPrefix ds:[gdtptr]
lgdt fword ptr [gdtptr]
#else
lgdt cs:[gdtptr]
#endif
/* Build the startup page tables */ /* Build the startup page tables */
call BuildPageTables call BuildPageTables