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/i386/pc386/startup | |
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/i386/pc386/startup')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/startup/bspstart.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c index f74300e971..7cd859f686 100644 --- a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c +++ b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c @@ -107,6 +107,15 @@ static void bsp_start_default( void ) */ bsp_pci_initialize_helper(); + /* + * Figure out where printk() and console IO is to be directed. + * Do this after the PCI bus is initialized so we have a chance + * for those devices to be added to the set in the console driver. + * In general, Do it as early as possible so printk() has a chance + * to work early on devices found via PCI probe. + */ + pc386_parse_console_arguments(); + #if (BSP_IS_EDISON == 0) Clock_driver_install_handler(); #endif |