source: rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/reboot.c @ 83e392b4

4.9
Last change on this file since 83e392b4 was 83e392b4, checked in by Eric Norum <WENorum@…>, on Oct 23, 2008 at 1:45:55 PM

Reset card on RTEMS shutdown.

  • Property mode set to 100644
File size: 401 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*) (GT64260_DEV1_BASE +2), 0x80);
16}
Note: See TracBrowser for help on using the repository browser.