diff options
author | Joel Sherrill <joel@rtems.org> | 2016-03-10 10:33:27 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2016-03-10 10:33:27 -0600 |
commit | c3c57b1ba3c945efea3bc24d71728b6c1e40f421 (patch) | |
tree | 328a8255e8825a53a83e548273c6172941193452 /c/src/lib/libbsp/shared/console.c | |
parent | Add shared PCI support and enhance pc386 to support non-legacy PCI configurat... (diff) | |
download | rtems-c3c57b1ba3c945efea3bc24d71728b6c1e40f421.tar.bz2 |
pc386: Improve boot command arguments for console/printk device selection
This patch adds the "--printk=" boot command line argument to specify
the printk() device. It also enhances the "--console=" boot command
line argument to match any device configured in the console device
table. The arguments are parsed as early as possible so they take
effect early. Currently, this is immediately after PCI initialization.
Diffstat (limited to 'c/src/lib/libbsp/shared/console.c')
-rw-r--r-- | c/src/lib/libbsp/shared/console.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/shared/console.c b/c/src/lib/libbsp/shared/console.c index 9c739a3e52..81a70b1b6c 100644 --- a/c/src/lib/libbsp/shared/console.c +++ b/c/src/lib/libbsp/shared/console.c @@ -34,12 +34,12 @@ rtems_device_minor_number Console_Port_Minor = 0; static bool console_initialized = false; /* - * console_initialize_pointers + * console_initialize_data * * This method is used to initialize the table of pointers to the * serial port configuration structure entries. */ -static void console_initialize_pointers(void) +void console_initialize_data(void) { int i; @@ -69,7 +69,7 @@ void console_register_devices( int old_number_of_ports; int i; - console_initialize_pointers(); + console_initialize_data(); /* * console_initialize has been invoked so it is now too late to @@ -252,7 +252,7 @@ rtems_device_driver console_initialize( * must still initialize pointers and set Console_Port_Data. */ if ( ! Console_Port_Tbl ) { - console_initialize_pointers(); + console_initialize_data(); Console_Port_Data = calloc( Console_Port_Count, sizeof( console_data ) ); if ( Console_Port_Data == NULL ) { bsp_fatal( BSP_FATAL_CONSOLE_NO_MEMORY_3 ); |