• Mark Rutland's avatar
    arm64: Don't relocate non-existent initrd · 4ca3bc86
    Mark Rutland authored
    When booting a kernel without an initrd, the kernel reports that it
    moves -1 bytes worth, having gone through the motions with initrd_start
    equal to initrd_end:
    
        Moving initrd from [4080000000-407fffffff] to [9fff49000-9fff48fff]
    
    Prevent this by bailing out early when the initrd size is zero (i.e. we
    have no initrd), avoiding the confusing message and other associated
    work.
    
    Fixes: 1570f0d7
    
     ("arm64: support initrd outside kernel linear map")
    Cc: Mark Salter <msalter@redhat.com>
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    4ca3bc86
setup.c 15.1 KB