• H. Peter Anvin's avatar
    x86, boot: straighten out ranges to copy/zero in compressed/head*.S · 5b11f1ce
    H. Peter Anvin authored
    Both on 32 and 64 bits, we copy all the way up to the end of bss,
    except that on 64 bits there is a hack to avoid copying on top of the
    page tables.  There is no point in copying bss at all, especially
    since we are just about to zero it all anyway.
    
    To clean up and unify the handling, we now do:
    
      - copy from startup_32 to _bss.
      - zero from _bss to _ebss.
      - the _ebss symbol is aligned to an 8-byte boundary.
      - the page tables are moved to a separate section.
    
    Use _bss as the copy endpoint since _edata may be misaligned.
    
    [ Impact: cleanup, trivial performance improvement ]
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
    5b11f1ce
vmlinux.lds.S 1000 Bytes