summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc64/niagara/start/bspinit.S
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-17 16:20:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-17 16:20:34 +0000
commit4d6f5f5fcdbbb853f3146bdcc9f3be0bb7770547 (patch)
tree27292f5a9307841fb42e42b222a9e4870d798bd5 /c/src/lib/libbsp/sparc64/niagara/start/bspinit.S
parent2010-06-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-4d6f5f5fcdbbb853f3146bdcc9f3be0bb7770547.tar.bz2
2010-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog, Makefile.am, README, bsp_specs, configure.ac, preinstall.am, include/bsp.h, include/tm27.h, make/custom/niagara.cfg, start/bspinit.S: New files.
Diffstat (limited to 'c/src/lib/libbsp/sparc64/niagara/start/bspinit.S')
-rw-r--r--c/src/lib/libbsp/sparc64/niagara/start/bspinit.S35
1 files changed, 35 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc64/niagara/start/bspinit.S b/c/src/lib/libbsp/sparc64/niagara/start/bspinit.S
new file mode 100644
index 0000000000..311de0d30a
--- /dev/null
+++ b/c/src/lib/libbsp/sparc64/niagara/start/bspinit.S
@@ -0,0 +1,35 @@
+/*
+ * bspinit.S
+ *
+ * BSP specific initialization for Sparc64 RTEMS -- sun4v BSP
+ *
+ * COPYRIGHT (c) 2010 Gedare Bloom.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * This code defines start code specific to the sun4v BSP
+ *
+ * $Id$
+ *
+ */
+
+#include <rtems/asm.h>
+#include <rtems/score/cpu.h>
+
+#define STACK_WINDOW_SAVE_AREA_SIZE (16*8)
+
+.section .text
+
+PUBLIC(_BSP_init)
+ .global _BSP_init
+ SYM(_BSP_init):
+
+ save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp
+
+
+
+ ret
+ restore
+