summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/gen5200/start/bspreset.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/powerpc/gen5200/start/bspreset.c')
-rw-r--r--bsps/powerpc/gen5200/start/bspreset.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/bsps/powerpc/gen5200/start/bspreset.c b/bsps/powerpc/gen5200/start/bspreset.c
new file mode 100644
index 0000000000..232ebfeac0
--- /dev/null
+++ b/bsps/powerpc/gen5200/start/bspreset.c
@@ -0,0 +1,30 @@
+/*
+ * COPYRIGHT (c) 1989-2008.
+ * 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.org/license/LICENSE.
+ */
+
+#include <rtems.h>
+#include <bsp.h>
+#include <bsp/mpc5200.h>
+#include <bsp/bootcard.h>
+
+void bsp_reset( void )
+{
+ #if (BENCHMARK_IRQ_PROCESSING == 1)
+ {
+ BSP_IRQ_Benchmarking_Report();
+ }
+ #endif
+
+ /*
+ * Now reset the CPU
+ */
+ mpc5200.gpt[0].count_in = 0xf;
+ mpc5200.gpt[0].emsel = 0x9004;
+
+ while(1) ;
+}