Ignore:
Timestamp:
Mar 10, 2016, 4:33:27 PM (5 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
5, master
Children:
36627387
Parents:
f770fcb
Message:

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.

File:
1 edited

Legend:

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

    rf770fcb rc3c57b1  
    3535
    3636/*
    37  *  console_initialize_pointers
     37 *  console_initialize_data
    3838 *
    3939 *  This method is used to initialize the table of pointers to the
    4040 *  serial port configuration structure entries.
    4141 */
    42 static void console_initialize_pointers(void)
     42void console_initialize_data(void)
    4343{
    4444  int i;
     
    7070  int  i;
    7171
    72   console_initialize_pointers();
     72  console_initialize_data();
    7373
    7474  /*
     
    253253   */
    254254  if ( ! Console_Port_Tbl ) {
    255     console_initialize_pointers();
     255    console_initialize_data();
    256256    Console_Port_Data  = calloc( Console_Port_Count, sizeof( console_data ) );
    257257    if ( Console_Port_Data == NULL ) {
Note: See TracChangeset for help on using the changeset viewer.