]> git.baikalelectronics.ru Git - kernel.git/commit
x86 boot: only pick up additional EFI memmap if add_efi_memmap flag
authorPaul Jackson <pj@sgi.com>
Wed, 25 Jun 2008 12:44:46 +0000 (05:44 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 11:10:41 +0000 (13:10 +0200)
commit88d14b4c22346f156acd9a909c5fb1bb214f683f
tree00dfe5cebbf6bf26ff8dbdff03b3ae1e59234bf9
parentacd47f544ef8d4bcdff976c2bfeaa7b9912ac6d6
x86 boot: only pick up additional EFI memmap if add_efi_memmap flag

Applies on top of the previous patch:
  x86 boot: add code to add BIOS provided EFI memory entries to kernel

Instead of always adding EFI memory map entries (if present) to the
memory map after initially finding either E820 BIOS memory map entries
and/or kernel command line memmap entries, -instead- only add such
additional EFI memory map entries if the kernel boot option:

    add_efi_memmap

is specified.

Requiring this 'add_efi_memmap' option is backward compatible with
kernels that didn't load such additional EFI memory map entries in
the first place, and it doesn't override a configuration that tries
to replace all E820 or EFI BIOS memory map entries with ones given
entirely on the kernel command line.

Signed-off-by: Paul Jackson <pj@sgi.com>
Cc: "Yinghai Lu" <yhlu.kernel@gmail.com>
Cc: "Jack Steiner" <steiner@sgi.com>
Cc: "Mike Travis" <travis@sgi.com>
Cc: "Huang
Cc: Ying" <ying.huang@intel.com>
Cc: "Andi Kleen" <andi@firstfloor.org>
Cc: "Andrew Morton" <akpm@linux-foundation.org>
Cc: Paul Jackson <pj@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/kernel-parameters.txt
Documentation/x86/x86_64/uefi.txt
arch/x86/kernel/efi.c