source: rtems/bsps/powerpc/motorola_powerpc/start/bspreset.c @ eb36d11

5
Last change on this file since eb36d11 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: 740 bytes
Line 
1#include <bsp.h>
2#include <rtems/bspIo.h>
3#include <libcpu/stackTrace.h>
4#include <bsp/bootcard.h>
5
6/*-------------------------------------------------------------------------+
7|         Function: bsp_reset
8|      Description: Reboot the PC.
9| Global Variables: None.
10|        Arguments: None.
11|          Returns: Nothing.
12+--------------------------------------------------------------------------*/
13void bsp_reset(void)
14{
15  printk("Printing a stack trace for your convenience :-)\n");
16  CPU_print_stack();
17  /* shutdown and reboot */
18
19#if defined(mvme2100)
20  *(unsigned char*)0xffe00000 |= 0x80;
21#else
22   /* Memory-mapped Port 92 PIB device access
23   *(unsigned char*)0x80000092 |= 0x01;
24   */
25   outb(1, 0x92);
26
27#endif
28} /* bsp_reset */
Note: See TracBrowser for help on using the repository browser.