https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d2f73877b7695aa0a51c3b...
commit d2f73877b7695aa0a51c3b403dd659f458d5aa90 Author: Hervé Poussineau hpoussin@reactos.org AuthorDate: Thu Jan 28 22:57:08 2021 +0100 Commit: Hervé Poussineau hpoussin@reactos.org CommitDate: Thu Jan 28 23:10:01 2021 +0100
[FREELDR/x64] Change syntax to be compatible with GAS x64 --- boot/freeldr/freeldr/arch/amd64/entry.S | 8 ++++---- boot/freeldr/freeldr/arch/realmode/amd64.S | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/boot/freeldr/freeldr/arch/amd64/entry.S b/boot/freeldr/freeldr/arch/amd64/entry.S index 24ecc07291d..a0149ef9daf 100644 --- a/boot/freeldr/freeldr/arch/amd64/entry.S +++ b/boot/freeldr/freeldr/arch/amd64/entry.S @@ -34,7 +34,7 @@ RealEntryPoint: jmp qword ptr [ContinueAddress]
ContinueAddress: - .quad offset FrldrStartup + .quad FrldrStartup
FrldrStartup:
@@ -184,7 +184,7 @@ SwitchToReal: jmp fword ptr [jumpvector]
jumpvector: - .long offset SwitchToRealCompSegment + .long SwitchToRealCompSegment .word CMODE_CS
SwitchToRealCompSegment: @@ -222,7 +222,7 @@ __fastfail: // void __lgdt(void *Source<rcx>); PUBLIC __lgdt __lgdt: - lgdt fword ptr [rcx] + lgdt cs:[rcx] ret
// void __ltr(unsigned short Source<rcx>); @@ -234,7 +234,7 @@ __ltr: // void _sgdt(void *Destination<rcx>); PUBLIC __sgdt __sgdt: - sgdt fword ptr [rcx] + sgdt cs:[rcx] ret
diff --git a/boot/freeldr/freeldr/arch/realmode/amd64.S b/boot/freeldr/freeldr/arch/realmode/amd64.S index ea1494f6b80..393b3f43016 100644 --- a/boot/freeldr/freeldr/arch/realmode/amd64.S +++ b/boot/freeldr/freeldr/arch/realmode/amd64.S @@ -67,7 +67,7 @@ Msg_LongModeSupported: call writestr
/* Load the GDT */ - lgdt fword ptr [gdtptr] + lgdt cs:[gdtptr]
/* Build the startup page tables */ call BuildPageTables @@ -265,7 +265,7 @@ RealModeEntryPoint: mov cr0, eax
/* Clear prefetch queue & correct CS */ - ljmp16 0, offset InRealMode + ljmp16 0, InRealMode
InRealMode: