• H. Peter Anvin's avatar
    x86, boot: make kernel_alignment adjustable; new bzImage fields · 37ba7ab5
    H. Peter Anvin authored
    Make the kernel_alignment field adjustable; this allows us to set it
    to a large value (intended to be 16 MB to avoid ZONE_DMA contention,
    memory holes and other weirdness) while a smart bootloader can still
    force a loading at a lesser alignment if absolutely necessary.
    
    Also export pref_address (preferred loading address, corresponding to
    the link-time address) and init_size, the total amount of linear
    memory the kernel will require during initialization.
    
    [ Impact: allows better kernel placement, gives bootloader more info ]
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
    37ba7ab5
head_32.S 3.79 KB