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

5
Last change on this file since 9964895 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 20, 2018 at 8:35:35 AM

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.