source: rtems/bsps/powerpc/mvme5500/start/bspreset.c

Last change on this file was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 542 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#include <stdint.h>
12
13void bsp_reset()
14{
15
16  printk("Printing a stack trace for your convenience :-)\n");
17  CPU_print_stack();
18
19  printk("RTEMS terminated; Rebooting ...\n");
20  /* Mvme5500 board reset : 2004 S. Kate Feng <feng1@bnl.gov>  */
21  out_8((volatile uint8_t*) (GT64x60_DEV1_BASE +2), 0x80);
22}
Note: See TracBrowser for help on using the repository browser.