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

4.104.114.84.95
Last change on this file since dc0f6585 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
RevLine 
[9966204]1/* $Id$ */
2
3#include "console.inl"
[4f3e4f33]4#include <rtems/bspIo.h>
5#include <libcpu/stackTrace.h>
[9966204]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{
[4f3e4f33]16  printk("Printing a stack trace for your convenience :-)\n");
17  CPU_print_stack();
[9966204]18  /* shutdown and reboot */
[e79a1947]19#if defined(BSP_KBD_IOBASE)
[9966204]20  kbd_outb(0x4, 0xFE);      /* use keyboard controler to do the job... */
[e79a1947]21#endif
[dc0f6585]22#if defined(mvme2100)
23  *(unsigned char*)0xffe00000 |= 0x80;
24#endif
[9966204]25} /* rtemsReboot */
Note: See TracBrowser for help on using the repository browser.