summaryrefslogtreecommitdiff
path: root/arch/aarch64/crt_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/aarch64/crt_arch.h')
-rw-r--r--arch/aarch64/crt_arch.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/aarch64/crt_arch.h b/arch/aarch64/crt_arch.h
new file mode 100644
index 00000000..32066881
--- /dev/null
+++ b/arch/aarch64/crt_arch.h
@@ -0,0 +1,9 @@
+__asm__(
+".global _start\n"
+".type _start,%function\n"
+"_start:\n"
+" mov x29, #0\n"
+" mov x30, #0\n"
+" mov x0, sp\n"
+" and sp, x0, #-16\n"
+" b __cstart\n");