fix compilation issues in aarch64 ports
[lunaix-os.git] / lunaix-os / arch / aarch64 / boot / start.S
index ed11af997b6fe26d50b45dd93ff9ea9572e82593..13878da38ac93e7c88e40df94efdbd48c06f1d2c 100644 (file)
@@ -1,5 +1,5 @@
 .section .boot.data
-    .align 16
+    .align 4
     stack_end:
         .skip 512
     stack_top:
             mov x3, xzr
      */
     start_:
-        ldr sp, =stack_top
+        adr x4, stack_top
+        mov sp, x4
         mov fp, xzr
 
-        ldr x4, =aarch64_init
-        blx x4
+        adr x4, aarch64_init
+        bl x4
          
         // x0: ptr to boot_handoff
-        ldr x4, =kernel_bootstrap
-        blx x4
\ No newline at end of file
+        adr x4, kernel_bootstrap
+        bl x4
\ No newline at end of file