x86, kexec: x86_64: add identity map for pages at image->start
authorHuang Ying <ying.huang@intel.com>
Tue, 10 Mar 2009 02:57:04 +0000 (10:57 +0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 11 Mar 2009 01:13:25 +0000 (18:13 -0700)
commit5359454701ce51a4626b1ef6eb7b16ec35bd458d
tree44f8d60b3cb1d06ec215387eb7e35fdbb64e70c8
parentfef3a7a17418814733ebde0b40d8e32747677c8f
x86, kexec: x86_64: add identity map for pages at image->start

Impact: Fix corner case that cannot yet occur

image->start may be outside of 0 ~ max_pfn, for example when jumping
back to original kernel from kexeced kenrel. This patch add identity
map for pages at image->start.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/machine_kexec_64.c