[FREELDR] Fix MSVC x64 compilation after d2f73877b7

This commit is contained in:
Hervé Poussineau 2021-01-29 07:45:13 +01:00
parent d2f73877b7
commit db35a7861f
2 changed files with 12 additions and 0 deletions

View file

@ -222,7 +222,11 @@ __fastfail:
// void __lgdt(void *Source<rcx>);
PUBLIC __lgdt
__lgdt:
#ifdef _USE_ML
lgdt fword ptr [rcx]
#else
lgdt cs:[rcx]
#endif
ret
// void __ltr(unsigned short Source<rcx>);
@ -234,7 +238,11 @@ __ltr:
// void _sgdt(void *Destination<rcx>);
PUBLIC __sgdt
__sgdt:
#ifdef _USE_ML
sgdt fword ptr [rcx]
#else
sgdt cs:[rcx]
#endif
ret

View file

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