]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: make 'mem=' option work for efi platform
authorWen Congyang <wency@cn.fujitsu.com>
Sat, 3 Nov 2012 00:42:05 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 8 Nov 2012 04:08:27 +0000 (15:08 +1100)
commit2639b9826197192b5775035fe3721badb575f4bd
treeda87a6097fdad90bbb537ed9302bb3f618c97011
parent8c00b6f4dd377cd35952a7dafa0ecdcbde5d1a41
x86: make 'mem=' option work for efi platform

Current mem boot option only can work for non efi environments.  If the
user specifies add_efi_memmap, it cannot work for efi environment.

In the efi environment, we call e820_add_region() to add the memory map.
So we can modify __e820_add_region() and the mem boot option can work for
an efi environment.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/kernel/e820.c