Ignore:
Timestamp:
Feb 20, 2003, 9:32:07 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
20b349f
Parents:
d19443c7
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/shared/console/reboot.c

    rd19443c7 r4f3e4f33  
    22
    33#include "console.inl"
     4#include <rtems/bspIo.h>
     5#include <libcpu/stackTrace.h>
    46
    57/*-------------------------------------------------------------------------+
     
    1214void rtemsReboot(void)
    1315{
     16  printk("Printing a stack trace for your convenience :-)\n");
     17  CPU_print_stack();
    1418  /* shutdown and reboot */
    1519  kbd_outb(0x4, 0xFE);      /* use keyboard controler to do the job... */
Note: See TracChangeset for help on using the changeset viewer.