• Pawel Moll's avatar
    params: <level>_initcall-like kernel parameters · 026cee00
    Pawel Moll authored
    This patch adds a set of macros that can be used to declare
    kernel parameters to be parsed _before_ initcalls at a chosen
    level are executed.  We rename the now-unused "flags" field of
    struct kernel_param as the level.  It's signed, for when we
    use this for early params as well, in future.
    
    Linker macro collating init calls had to be modified in order
    to add additional symbols between levels that are later used
    by the init code to split the calls into blocks.
    Signed-off-by: default avatarPawel Moll <pawel.moll@arm.com>
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    026cee00
params.c 21.8 KB