]> git.baikalelectronics.ru Git - kernel.git/commit
x86, mm: Move init_memory_mapping calling out of setup.c
authorYinghai Lu <yinghai@kernel.org>
Sat, 17 Nov 2012 03:38:41 +0000 (19:38 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 17 Nov 2012 19:59:03 +0000 (11:59 -0800)
commitf3a7c1df16767cd5933078493bc0457e57f87345
tree01791d16254b54f6aad4b5381675b4269bda4d45
parent1896d50490ae11e2b1e4978e7e124ac000ff98e1
x86, mm: Move init_memory_mapping calling out of setup.c

Now init_memory_mapping is called two times, later will be called for every
ram ranges.

Could put all related init_mem calling together and out of setup.c.

Actually, it reverts commit 8c93715
    x86: Exclude E820_RESERVED regions and memory holes above 4 GB from direct mapping.
will address that later with complete solution include handling hole under 4g.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1353123563-3103-5-git-send-email-yinghai@kernel.org
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/init.h
arch/x86/include/asm/pgtable.h
arch/x86/kernel/setup.c
arch/x86/mm/init.c