From: Yinghai Lu Date: Thu, 24 Jan 2013 20:20:05 +0000 (-0800) Subject: x86, kexec, 64bit: Only set ident mapping for ram. X-Git-Tag: v3.9-rc1~105^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e691cf824f76adefb4498fe39c300aba2c2575a;p=pandora-kernel.git x86, kexec, 64bit: Only set ident mapping for ram. We should set mappings only for usable memory ranges under max_pfn Otherwise causes same problem that is fixed by x86, mm: Only direct map addresses that are marked as E820_RAM This patch exposes pfn_mapped array, and only sets ident mapping for ranges in that array. This patch relies on new kernel_ident_mapping_init that could handle existing pgd/pud between different calls. Signed-off-by: Yinghai Lu Link: http://lkml.kernel.org/r/1359058816-7615-25-git-send-email-yinghai@kernel.org Cc: Alexander Duyck Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed