source: rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/bspreset.c @ 2d5c486

4.115
Last change on this file since 2d5c486 was 2d5c486, checked in by Nick Withers <nick.withers@…>, on Nov 27, 2014 at 6:39:36 AM

Use fixed-width C99 types for PowerPC in_be16() and co.

Also use the const qualifier on the address pointer's target in in_*()

Closes #2128

  • 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.