OSDN Git Service

x86, 64bit, mm: Add generic kernel/ident mapping helper
authorYinghai Lu <yinghai@kernel.org>
Thu, 24 Jan 2013 20:19:48 +0000 (12:19 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 29 Jan 2013 23:12:25 +0000 (15:12 -0800)
commitaece27851d44bde62fc0587e06f5e8e27fd96e5f
tree5a9fa3138d54cf9e12929764b484ceca42f8dff3
parent231b3642a3c73fb9f1221dcb96fe8c0fbb658dfd
x86, 64bit, mm: Add generic kernel/ident mapping helper

It is simple version for kernel_physical_mapping_init.
it will work to build one page table that will be used later.

Use mapping_info to control
        1. alloc_pg_page method
        2. if PMD is EXEC,
        3. if pgd is with kernel low mapping or ident mapping.

Will use to replace some local versions in kexec, hibernation and etc.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1359058816-7615-8-git-send-email-yinghai@kernel.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/init.h
arch/x86/mm/init_64.c