[FREELDR/x64] Change syntax to be compatible with GAS x64
[reactos.git] / boot / freeldr / freeldr / arch / amd64 / entry.S
index 24ecc07..a0149ef 100644 (file)
@@ -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