Changeset dabaa83 in mainline for boot/arch/mips32/src/main.c


Ignore:
Timestamp:
2019-06-05T06:37:17Z (5 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/mips32/src/main.c

    r77918b0 rdabaa83  
    4545static uint32_t *cpumap = (uint32_t *) PA2KA(CPUMAP_OFFSET);
    4646
    47 void bootstrap(void)
     47void bootstrap(int kargc, char **kargv)
    4848{
    4949        version_print();
     
    7979        }
    8080
     81        str_cpy(bootinfo->bootargs, sizeof(bootinfo->bootargs),
     82            (kargc > 1) ? kargv[1] : "");
     83
    8184        uintptr_t entry = check_kernel(kernel_start);
    8285
Note: See TracChangeset for help on using the changeset viewer.