mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[FREELDR/x64] Change syntax to be compatible with GAS x64
This commit is contained in:
parent
dd1f0d02bc
commit
78d9c38c37
1 changed files with 8 additions and 0 deletions
|
@ -77,7 +77,11 @@ Msg_LongModeSupported:
|
|||
call BuildPageTables
|
||||
|
||||
/* Store real mode entry point in shared memory */
|
||||
#ifdef _USE_ML
|
||||
mov dword ptr ds:[BSS_RealModeEntry], offset RealModeEntryPoint
|
||||
#else
|
||||
mov dword ptr ds:[BSS_RealModeEntry], (FREELDR_BASE + RealModeEntryPoint - (Startup - 512))
|
||||
#endif
|
||||
|
||||
/* Address the image with es segment */
|
||||
mov ax, FREELDR_PE_BASE / 16
|
||||
|
@ -120,7 +124,11 @@ gdt:
|
|||
/* GDT table pointer */
|
||||
gdtptr:
|
||||
.word HEX(37) /* Limit */
|
||||
#ifdef _USE_ML
|
||||
.long offset gdt /* Base Address */
|
||||
#else
|
||||
.long (FREELDR_BASE + gdt - (Startup - 512)) /* Base Address */
|
||||
#endif
|
||||
|
||||
|
||||
CheckFor64BitSupport:
|
||||
|
|
Loading…
Reference in a new issue