source: rtems/c/src/lib/libbsp/powerpc/shared/console/reboot.c @ 4f3e4f33
Last change on this file since 4f3e4f33 was 4f3e4f33, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 20, 2003 at 9:32:07 PM

2003-02-20 Till Straumann <strauman@…>

PR 349/bsps

  • console/console.c, console/uart.c, console/uart.h: implement IOCTLs for the serial (UART) console to install/retrieve a BREAK-IRQ callback. The callback routine (if installed) is invoked from the UART ISR when a BREAK interrupt is detected. This can be used e.g. to enforce a "hotkey" reboot a la vxWorks Ctrl-X (although we use the serial line break condition) NOTE: The callback runs in ISR context.
  • Property mode set to 100644
File size: 626 bytes
[9966204]1/* $Id$ */
3#include "console.inl"
[4f3e4f33]4#include <rtems/bspIo.h>
5#include <libcpu/stackTrace.h>
8|         Function: rtemsReboot
9|      Description: Reboot the PC.
10| Global Variables: None.
11|        Arguments: None.
12|          Returns: Nothing.
14void rtemsReboot(void)
[4f3e4f33]16  printk("Printing a stack trace for your convenience :-)\n");
17  CPU_print_stack();
[9966204]18  /* shutdown and reboot */
19  kbd_outb(0x4, 0xFE);      /* use keyboard controler to do the job... */
20} /* rtemsReboot */
Note: See TracBrowser for help on using the repository browser.