• Alexander van Heukelum's avatar
    x86: reserve end-of-conventional-memory to 1MB on 32-bit · dedd04be
    Alexander van Heukelum authored
    This patch adds explicit detection of the EBDA and reservation
    of the rom and adapter address space 0xa0000-0x100000 to the
    i386 kernels. Before this patch, the EBDA size was hardcoded
    as 4Kb. Also, the reservation of the adapter range was done by
    modifying the e820 map which is now not necessary any longer,
    and that code is removed from copy_e820_map.
    
    The amount of conventional memory and the start of the EBDA are
    detected by reading the BIOS data area directly. Paravirtual
    environments do not provide this area, so we bail out early
    in that case. They will just have to set up a correct memory
    map to start with.
    Signed-off-by: default avatarAlexander van Heukelum <heukelum@fastmail.fm>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    dedd04be
setup_32.c 23.9 KB