[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
/* Load the GDT */
#ifdef _USE_ML
lgdt fword ptr [gdtptr]
#else
lgdt cs:[gdtptr]
#endif
lgdt lXdtPrefix ds:[gdtptr]
/* Build the startup page tables */
call BuildPageTables