]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix init_memory_mapping() to handle small ranges
authorYinghai Lu <yinghai@kernel.org>
Tue, 3 Mar 2009 07:36:13 +0000 (23:36 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 3 Mar 2009 07:50:22 +0000 (08:50 +0100)
commit9ea94434c889aba7525afcc7807ef1e2ccd437a0
tree1feae906b3ea81e6e8840900c14d63c1350998b5
parentda9ab76086120526aef10bf54e302046219797b1
x86: fix init_memory_mapping() to handle small ranges

Impact: fix failed EFI bootup in certain circumstances

Ying Huang found init_memory_mapping() has problem with small ranges
less than 2M when he tried to direct map the EFI runtime code out of
max_low_pfn_mapped.

It turns out we never considered that case and didn't check the range...

Reported-by: Ying Huang <ying.huang@intel.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Brian Maly <bmaly@redhat.com>
LKML-Reference: <49ACDDED.1060508@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init_64.c