]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86: fix EFI memory map parsing
authorMatt Tolentino <metolent@snoqualmie.dp.intel.com>
Sat, 3 Sep 2005 22:56:27 +0000 (15:56 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:06:09 +0000 (00:06 -0700)
commite0b62a0803371458ab80f2d5ade03a0bbe21d23e
treecbc63abb55033d88f9a631741603a2a379bebee2
parentf4c028d5d3979ef4a68a0cf4ce5023441ba2e94b
[PATCH] x86: fix EFI memory map parsing

The memory descriptors that comprise the EFI memory map are not fixed in
stone such that the size could change in the future.  This uses the memory
descriptor size obtained from EFI to iterate over the memory map entries
during boot.  This enables the removal of an x86 specific pad (and ifdef)
in the EFI header.  I also couldn't stomach the broken up nature of the
function to put EFI runtime calls into virtual mode any longer so I fixed
that up a bit as well.

For reference, this patch only impacts x86.

Signed-off-by: Matt Tolentino <matthew.e.tolentino@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/efi.c
arch/i386/kernel/setup.c
arch/i386/mm/init.c
include/asm-i386/setup.h
include/linux/efi.h