summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/qemuppc/start/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/powerpc/qemuppc/start/start.S')
-rw-r--r--c/src/lib/libbsp/powerpc/qemuppc/start/start.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/qemuppc/start/start.S b/c/src/lib/libbsp/powerpc/qemuppc/start/start.S
new file mode 100644
index 0000000000..90fdf1e5fa
--- /dev/null
+++ b/c/src/lib/libbsp/powerpc/qemuppc/start/start.S
@@ -0,0 +1,21 @@
+ #.section ".text"
+ .section .entry_point_section,"awx",@progbits
+ .global _start
+
+_start:
+ lis %r1,_stack@h
+ ori %r1,%r1,_stack@l
+ li %r3,8192
+ mtmsr %r3
+ bl cmain
+ .size _start, . - _start
+
+ .global __eabi
+__eabi:
+ blr
+ .size __eabi, . - __eabi
+
+ .section ".reset","ax"
+_reset:
+ b _start
+ .size _reset, . - _reset