source: rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspreset.c @ 9660ad6

4.115
Last change on this file since 9660ad6 was 9660ad6, checked in by Daniel Ramirez <javamonn@…>, on 11/23/13 at 19:23:14

beatnik: Move bsp_reset() to beatnik/startup/bspreset.c

  • Property mode set to 100644
File size: 405 bytes
Line 
1#include <rtems.h>
2#include <bsp.h>
3#include <rtems/bspIo.h>
4#include <libcpu/io.h>
5#include <libcpu/stackTrace.h>
6
7void bsp_reset()
8{
9
10  printk("Printing a stack trace for your convenience :-)\n");
11  CPU_print_stack();
12
13  printk("RTEMS terminated; Rebooting ...\n");
14  /* Mvme5500 board reset : 2004 S. Kate Feng <feng1@bnl.gov>  */
15  out_8((volatile unsigned char*) (BSP_MV64x60_DEV1_BASE +2), 0x80);
16}
Note: See TracBrowser for help on using the repository browser.