source: rtems/c/src/lib/libbsp/powerpc/shared/console/reboot.c @ 0de2f239

4.104.114.84.95
Last change on this file since 0de2f239 was dc0f6585, checked in by Till Straumann <strauman@…>, on 11/04/05 at 03:20:29

2005-11-03 <strauman@…>

  • shared/console/reboot.c, shared/start/start.S: Fixed PR#845;

!!enable MMU!! on mvme2100 - this is very important.
Otherwise, all accesses are write-back cached [incl. memory-mapped devices].
(Prerequisite were the changes to shared/startup/bspstart.c just
below.) Implemented rtemsReboot() for mvme2100.

  • Property mode set to 100644
File size: 729 bytes
Line 
1/* $Id$ */
2
3#include "console.inl"
4#include <rtems/bspIo.h>
5#include <libcpu/stackTrace.h>
6
7/*-------------------------------------------------------------------------+
8|         Function: rtemsReboot
9|      Description: Reboot the PC.
10| Global Variables: None.
11|        Arguments: None.
12|          Returns: Nothing.
13+--------------------------------------------------------------------------*/
14void rtemsReboot(void)
15{
16  printk("Printing a stack trace for your convenience :-)\n");
17  CPU_print_stack();
18  /* shutdown and reboot */
19#if defined(BSP_KBD_IOBASE)
20  kbd_outb(0x4, 0xFE);      /* use keyboard controler to do the job... */
21#endif
22#if defined(mvme2100)
23  *(unsigned char*)0xffe00000 |= 0x80;
24#endif
25} /* rtemsReboot */
Note: See TracBrowser for help on using the repository browser.