4.104.114.84.95
Last change
on this file since 20b349f was
4f3e4f33,
checked in by Joel Sherrill <joel.sherrill@…>, on 02/20/03 at 21:32:07
|
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
|
Rev | Line | |
---|
[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 | +--------------------------------------------------------------------------*/ |
---|
| 14 | void rtemsReboot(void) |
---|
| 15 | { |
---|
[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.