summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/psim
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-14 20:52:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-14 20:52:15 +0000
commit9c329a5c144ea04ce0e8e2025818ce64dc088113 (patch)
tree1aa360501fff0d805a8623da954c16cf6b0db2fa /c/src/lib/libbsp/powerpc/psim
parentnew file (diff)
downloadrtems-9c329a5c144ea04ce0e8e2025818ce64dc088113.tar.bz2
Moved bspclean from assembly to C and made exit act properly.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/Makefile.in4
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/bspclean.c17
2 files changed, 19 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/Makefile.in b/c/src/lib/libbsp/powerpc/psim/startup/Makefile.in
index b7fa673d11..b7b98d2278 100644
--- a/c/src/lib/libbsp/powerpc/psim/startup/Makefile.in
+++ b/c/src/lib/libbsp/powerpc/psim/startup/Makefile.in
@@ -11,14 +11,14 @@ PROJECT_ROOT = @PROJECT_ROOT@
PGM=${ARCH}/startup.rel
# C source names, if any, go here -- minus the .c
-C_PIECES=bsppost bspstart main sbrk setvec
+C_PIECES=bspclean bsppost bspstart main sbrk setvec
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
H_FILES=
# Assembly source names, if any, go here -- minus the .s
-S_PIECES=bspclean
+S_PIECES=
S_FILES=$(S_PIECES:%=%.s)
S_O_FILES=$(S_FILES:%.s=${ARCH}/%.o)
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/bspclean.c b/c/src/lib/libbsp/powerpc/psim/startup/bspclean.c
new file mode 100644
index 0000000000..fce38e7b3a
--- /dev/null
+++ b/c/src/lib/libbsp/powerpc/psim/startup/bspclean.c
@@ -0,0 +1,17 @@
+/*
+ * COPYRIGHT (c) 1989-1998.
+ * On-Line Applications Research Corporation (OAR).
+ * Copyright assigned to U.S. Government, 1994.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ * $Id$
+ */
+
+void bsp_cleanup( void )
+{
+ asm volatile( "li 10,99" ); /* 0x63 */
+ asm volatile( "sc" );
+}