source: rtems/c/src/lib/libbsp/powerpc/shared/console/bspreset.c @ e7c99cfe

4.104.115
Last change on this file since e7c99cfe was e7c99cfe, checked in by Joel Sherrill <joel.sherrill@…>, on 02/11/09 at 16:13:56

2009-02-11 Matt Rippa <mrippa@…>

PR 1362/bsps

  • shared/console/bspreset.c: Fix BSP reset on mvme2300 - mvme2700.
  • Property mode set to 100644
File size: 735 bytes
Line 
1/* $Id$ */
2
3#include "console.inl"
4#include <rtems/bspIo.h>
5#include <libcpu/stackTrace.h>
6
7/*-------------------------------------------------------------------------+
8|         Function: bsp_reset
9|      Description: Reboot the PC.
10| Global Variables: None.
11|        Arguments: None.
12|          Returns: Nothing.
13+--------------------------------------------------------------------------*/
14void bsp_reset(void)
15{
16  printk("Printing a stack trace for your convenience :-)\n");
17  CPU_print_stack();
18  /* shutdown and reboot */
19   
20#if defined(mvme2100)
21  *(unsigned char*)0xffe00000 |= 0x80;
22#else
23   /* Memory-mapped Port 92 PIB device access
24   *(unsigned char*)0x80000092 |= 0x01;
25   */
26   outb(1, 0x92);
27
28#endif
29} /* bsp_reset */
Note: See TracBrowser for help on using the repository browser.