summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/console/console.c
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2009-10-28 01:24:10 +0000
committerTill Straumann <strauman@slac.stanford.edu>2009-10-28 01:24:10 +0000
commit7699617f2ad500878376891d805099dc5c57af99 (patch)
tree4589531735ad8be60974774e7e413041faf7d869 /c/src/lib/libbsp/i386/pc386/console/console.c
parent2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-7699617f2ad500878376891d805099dc5c57af99.tar.bz2
2009-12-27 Till Straumann <strauman@slac.stanford.edu>
* include/bsp.h, console/console.c: Provide weak-alias hook so that the application may choose the console.
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/console/console.c')
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/console.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/console/console.c b/c/src/lib/libbsp/i386/pc386/console/console.c
index 907d540542..8b4664b9d4 100644
--- a/c/src/lib/libbsp/i386/pc386/console/console.c
+++ b/c/src/lib/libbsp/i386/pc386/console/console.c
@@ -139,6 +139,10 @@ int kbd_poll_read( int minor )
return -1;
}
+/* provide default that does nothing */
+extern void
+BSP_runtime_console_select(int *, int *) __attribute__((weak));
+
/*-------------------------------------------------------------------------+
| Console device driver INITIALIZE entry point.
+--------------------------------------------------------------------------+
@@ -186,6 +190,9 @@ console_initialize(rtems_device_major_number major,
*/
rtems_termios_initialize ();
+ if ( BSP_runtime_console_select )
+ BSP_runtime_console_select(&BSPPrintkPort, &BSPConsolePort);
+
#ifdef RTEMS_RUNTIME_CONSOLE_SELECT
/*
* If no video card, fall back to serial port console