]> bbs.cooldavid.org Git - net-next-2.6.git/commit - arch/i386/mm/init.c
[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)
commit7ae65fd334232468a9d6b523a4fc141cd6ec5ea4
treecbc63abb55033d88f9a631741603a2a379bebee2
parent4116c527ea9517623369a5b3b037aedde280d672
[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