]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit039911fe7c4b242c2f8dbf1cb4d3d23b0d732ddb
tree5a9fa3138d54cf9e12929764b484ceca42f8dff3
parente44664946cf88290ee8a66aac84625ead99d7729
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