summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m32r
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-02-01 01:13:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-02-01 01:13:10 +0000
commit9b677cc9201660b32a4b91255922181b16ed578d (patch)
treed765662f90027ddcef444f0ed3e45f5c95c3c783 /c/src/lib/libbsp/m32r
parent2011-01-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-9b677cc9201660b32a4b91255922181b16ed578d.tar.bz2
2011-01-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspreset.c: New file.
Diffstat (limited to 'c/src/lib/libbsp/m32r')
-rw-r--r--c/src/lib/libbsp/m32r/m32rsim/ChangeLog4
-rw-r--r--c/src/lib/libbsp/m32r/m32rsim/startup/bspreset.c19
2 files changed, 23 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/m32r/m32rsim/ChangeLog b/c/src/lib/libbsp/m32r/m32rsim/ChangeLog
index 7f69095d18..624b197be9 100644
--- a/c/src/lib/libbsp/m32r/m32rsim/ChangeLog
+++ b/c/src/lib/libbsp/m32r/m32rsim/ChangeLog
@@ -1,5 +1,9 @@
2011-01-31 Joel Sherrill <joel.sherrill@oarcorp.com>
+ * startup/bspreset.c: New file.
+
+2011-01-31 Joel Sherrill <joel.sherrill@oarcorp.com>
+
* Makefile.am, configure.ac, console/console-io.c, include/bsp.h,
start/start.S: Create dedicated bsp_reset() and clean up.
diff --git a/c/src/lib/libbsp/m32r/m32rsim/startup/bspreset.c b/c/src/lib/libbsp/m32r/m32rsim/startup/bspreset.c
new file mode 100644
index 0000000000..af288998c0
--- /dev/null
+++ b/c/src/lib/libbsp/m32r/m32rsim/startup/bspreset.c
@@ -0,0 +1,19 @@
+/*
+ * COPYRIGHT (c) 1989-2011.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * 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.
+ *
+ * $Id$
+ */
+
+#include <rtems.h>
+#include <bsp/bootcard.h>
+#include <bsp.h>
+
+void bsp_reset( void )
+{
+ TRAP0(SYS_exit, 0, 0, 0);
+}