From c3c57b1ba3c945efea3bc24d71728b6c1e40f421 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 10 Mar 2016 10:33:27 -0600 Subject: 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. --- c/src/lib/libbsp/i386/pc386/include/bsp.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'c/src/lib/libbsp/i386/pc386/include/bsp.h') diff --git a/c/src/lib/libbsp/i386/pc386/include/bsp.h b/c/src/lib/libbsp/i386/pc386/include/bsp.h index 5778c75696..ed5c31947e 100644 --- a/c/src/lib/libbsp/i386/pc386/include/bsp.h +++ b/c/src/lib/libbsp/i386/pc386/include/bsp.h @@ -282,6 +282,12 @@ void C_dispatch_isr(int vector); const pci_config_access_functions *pci_bios_initialize(void); const pci_config_access_functions *pci_io_initialize(void); +/* + * Helper to parse boot command line arguments related to the console driver + */ +void pc386_parse_console_arguments(void); + + #ifdef __cplusplus } #endif -- cgit v1.2.3