x86: Factor out e820_add_kernel_range()
authorYinghai Lu <yinghai@kernel.org>
Thu, 24 Jan 2013 20:19:45 +0000 (12:19 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 29 Jan 2013 23:12:24 +0000 (15:12 -0800)
commitb422a3091748c38b68052e8ba021652590b1f25c
tree07802b9b5cc8b1e72c4d09b179be1fe5e9ad4d12
parentc9b3234a6abadaa12684083d39552939baaed1f4
x86: Factor out e820_add_kernel_range()

Separate out the reservation of the kernel static memory areas into a
separate function.

Also add support for case when memmap=xxM$yyM is used without exactmap.
Need to remove reserved range at first before we add E820_RAM
range, otherwise added E820_RAM range will be ignored.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1359058816-7615-5-git-send-email-yinghai@kernel.org
Cc: Jacob Shin <jacob.shin@amd.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/setup.c