• AKASHI Takahiro's avatar
    arm64: kexec_file: load initrd and device-tree · 52b2a8af
    AKASHI Takahiro authored
    load_other_segments() is expected to allocate and place all the necessary
    memory segments other than kernel, including initrd and device-tree
    blob (and elf core header for crash).
    While most of the code was borrowed from kexec-tools' counterpart,
    users may not be allowed to specify dtb explicitly, instead, the dtb
    presented by the original boot loader is reused.
    
    arch_kimage_kernel_post_load_cleanup() is responsible for freeing arm64-
    specific data allocated in load_other_segments().
    Signed-off-by: default avatarAKASHI Takahiro <takahiro.akashi@linaro.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Will Deacon <will.deacon@arm.com>
    Reviewed-by: default avatarJames Morse <james.morse@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    52b2a8af
machine_kexec_file.c 4.46 KB