summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/crt_arch.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/crt_arch.h b/arch/arm/crt_arch.h
new file mode 100644
index 00000000..979fb081
--- /dev/null
+++ b/arch/arm/crt_arch.h
@@ -0,0 +1,9 @@
+__asm__("\
+.global _start \n\
+_start: \n\
+ mov fp, #0 \n\
+ mov lr, #0 \n\
+ mov a1, sp \n\
+ and sp, sp, #-16 \n\
+ bl __cstart \n\
+");