Changeset dabaa83 in mainline for kernel


Ignore:
Timestamp:
2019-06-05T06:37:17Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3f4149
Parents:
77918b0
Message:

Add boot arguments support for Malta

This commit makes it possible to pass console configuration via proper
boot arguemnts instead of having a hardcoded value in the kernel.

Location:
kernel/arch/mips32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/arch/arch.h

    r77918b0 rdabaa83  
    4242#define CPUMAP_MAX_RECORDS         32
    4343#define BOOTINFO_TASK_NAME_BUFLEN  32
     44#define BOOTINFO_BOOTARGS_BUFLEN   256
    4445
    4546extern size_t cpu_count;
     
    6667        uint32_t cpumap;
    6768        taskmap_t taskmap;
     69        char bootargs[BOOTINFO_BOOTARGS_BUFLEN];
    6870} bootinfo_t;
    6971
  • kernel/arch/mips32/src/mach/malta/malta.c

    r77918b0 rdabaa83  
    4646#include <sysinfo/sysinfo.h>
    4747#include <log.h>
    48 #include <str.h>
    4948
    5049static void malta_init(void);
     
    116115            NULL, NULL, tty_out_ptr);
    117116#endif
    118 
    119         const char *args = "console=devices/\\hw\\pci0\\00:0a.0\\com1\\a";
    120         str_ncpy(bargs, CONFIG_BOOT_ARGUMENTS_BUFLEN, args, str_length(args));
    121117}
    122118
  • kernel/arch/mips32/src/mips32.c

    r77918b0 rdabaa83  
    107107#endif
    108108
     109        str_cpy(bargs, CONFIG_BOOT_ARGUMENTS_BUFLEN, bootinfo->bootargs);
     110
    109111        /* Initialize machine_ops pointer. */
    110112        machine_ops_init();
Note: See TracChangeset for help on using the changeset viewer.