summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/mvme5500/start/bspreset.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/powerpc/mvme5500/start/bspreset.c')
-rw-r--r--bsps/powerpc/mvme5500/start/bspreset.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/bsps/powerpc/mvme5500/start/bspreset.c b/bsps/powerpc/mvme5500/start/bspreset.c
new file mode 100644
index 0000000000..de15bc4972
--- /dev/null
+++ b/bsps/powerpc/mvme5500/start/bspreset.c
@@ -0,0 +1,22 @@
+/* Copyright 2003, Shuchen Kate Feng <feng1@bnl.gov>,
+ * NSLS,Brookhaven National Laboratory
+ *
+ */
+
+#include <bsp.h>
+#include <bsp/bootcard.h>
+#include <rtems/bspIo.h>
+#include <libcpu/io.h>
+#include <libcpu/stackTrace.h>
+#include <stdint.h>
+
+void bsp_reset()
+{
+
+ printk("Printing a stack trace for your convenience :-)\n");
+ CPU_print_stack();
+
+ printk("RTEMS terminated; Rebooting ...\n");
+ /* Mvme5500 board reset : 2004 S. Kate Feng <feng1@bnl.gov> */
+ out_8((volatile uint8_t*) (GT64x60_DEV1_BASE +2), 0x80);
+}