summaryrefslogtreecommitdiffstats
path: root/bsps/moxie
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-20 10:19:28 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-20 13:08:36 +0200
commitfbcd7c8fa65eb695e96a62ea1c1ac7a024fa9dfc (patch)
treea17e285cf22cd49cd42e8b3ad562febc3987d566 /bsps/moxie
parentbsps: Move console drivers to bsps (diff)
downloadrtems-fbcd7c8fa65eb695e96a62ea1c1ac7a024fa9dfc.tar.bz2
bsps: Move start files to bsps
This patch is a part of the BSP source reorganization. Update #3285.
Diffstat (limited to 'bsps/moxie')
-rw-r--r--bsps/moxie/moxiesim/start/start.S28
1 files changed, 28 insertions, 0 deletions
diff --git a/bsps/moxie/moxiesim/start/start.S b/bsps/moxie/moxiesim/start/start.S
new file mode 100644
index 0000000000..ae712cb3e4
--- /dev/null
+++ b/bsps/moxie/moxiesim/start/start.S
@@ -0,0 +1,28 @@
+/* Copyright (C) 2011, 2013, 2014 Anthony Green */
+
+/* moxie start up file. */
+
+#include "bspopts.h"
+
+#if defined(HAVE_OLD_MOXIE_ASM)
+#define sub sub.l
+#endif
+
+ .text
+ .global _start
+_start:
+ ldi.l $sp, _stack /* load up stack pointer */
+ xor $fp, $fp /* zero fp to allow unwinders to stop */
+
+ /* zero the bss area */
+ ldi.l $r0, __bss_start__
+ xor $r1, $r1
+ ldi.l $r2, __bss_end__
+ sub $r2, $r0
+ jsra memset
+
+ ldi.l $r0, 0x0 # pass in NULL
+ jsra boot_card
+ jmpa _start # restart
+.Lend:
+ .size _start,(.Lend-_start)