aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/loader/arch/arm64/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'stand/efi/loader/arch/arm64/start.S')
-rw-r--r--stand/efi/loader/arch/arm64/start.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/stand/efi/loader/arch/arm64/start.S b/stand/efi/loader/arch/arm64/start.S
index b58c2c50be9f..bddc2d088a64 100644
--- a/stand/efi/loader/arch/arm64/start.S
+++ b/stand/efi/loader/arch/arm64/start.S
@@ -160,6 +160,23 @@ _start:
ldp x0, x1, [sp], #16
+#ifndef EFI_BOOT1
+ /*
+ * Load the stack to use. The default stack may be too small for
+ * the lua loader.
+ */
+ adr x2, initstack_end
+ mov sp, x2
+#endif
+
bl efi_main
1: b 1b
+
+#ifndef EFI_BOOT1
+.bss
+ .align 4
+initstack:
+ .space (64 * 1024)
+initstack_end:
+#endif