Skip to content
  • Kevin Wolf's avatar
    multiboot: Calculate upper_mem in the ROM · 26a8ec07
    Kevin Wolf authored
    
    
    The upper_mem field of the Multiboot information struct doesn't really
    contain the RAM size - 1 MB like we used to calculate it, but only the
    memory from 1 MB up to the first (upper) memory hole.
    
    In order to correctly retrieve this information, the multiboot ROM now
    looks at the mmap it creates anyway and tries to find the size of
    contiguous usable memory from 1 MB.
    
    Drop the multiboot.c definition of lower_mem and upper_mem because both
    are queried at runtime now.
    
    Signed-off-by: default avatarKevin Wolf <mail@kevin-wolf.de>
    Reviewed-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    Message-id: 1372018066-21822-3-git-send-email-mail@kevin-wolf.de
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    26a8ec07