]> git.baikalelectronics.ru Git - kernel.git/commit
x86, efi: Do not reserve boot services regions within reserved areas
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Tue, 14 Jun 2011 17:53:09 +0000 (19:53 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 18 Jun 2011 20:48:49 +0000 (22:48 +0200)
commitafb4a8d5247eb4b1382f5295db8cbe2078bae5af
tree3c93edddda1ee71b9ce4aeeaa133bf627f7d691e
parent60b3dc27bfa855def0d71c3544958c89a54b26da
x86, efi: Do not reserve boot services regions within reserved areas

Commit 0f05ad4e578 started reserving boot service code since some systems
require you to keep that code around until SetVirtualAddressMap is called.

However, in some cases those areas will overlap with reserved regions.
The proper medium-term fix is to fix the bootloader to prevent the
conflicts from occurring by moving the kernel to a better position,
but the kernel should check for this possibility, and only reserve regions
which can be reserved.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Link: http://lkml.kernel.org/r/4DF7A005.1050407@gmail.com
Acked-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/memblock.h
arch/x86/mm/memblock.c
arch/x86/platform/efi/efi.c