source: rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/bspreset.c @ 2573e69

4.115
Last change on this file since 2573e69 was 6ae1142, checked in by Joel Sherrill <joel.sherrill@…>, on 10/11/14 at 23:47:33

powerpc/mvme5500/startup/bspreset.c: Include <bsp/bootcard.h>

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