x86: EFI stub support for large memory maps
authorLinn Crosetto <linn@hp.com>
Mon, 23 Sep 2013 01:59:08 +0000 (19:59 -0600)
committerMatt Fleming <matt.fleming@intel.com>
Mon, 30 Sep 2013 09:23:10 +0000 (10:23 +0100)
commitd2078d5adbe227d64d7963d93f13479c890a9a16
tree2f9e6e2abc7f3d9aa69fd0587c3ae407f4e19b18
parent3203209d61440e02429fc52f192797adf5d8c053
x86: EFI stub support for large memory maps

This patch fixes a problem with EFI memory maps larger than 128 entries
when booting using the EFI stub, which results in overflowing e820_map
in boot_params and an eventual halt when checking the map size in
sanitize_e820_map().

If the number of map entries is greater than what can fit in e820_map,
add the extra entries to the setup_data list using type SETUP_E820_EXT.
These extra entries are then picked up when the setup_data list is
parsed in parse_e820_ext().

Signed-off-by: Linn Crosetto <linn@hp.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/boot/compressed/eboot.c