summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib/usercopy_64.c
diff options
context:
space:
mode:
authorGary Hade <garyhade@us.ibm.com>2009-01-19 13:46:41 -0800
committerIngo Molnar <mingo@elte.hu>2009-01-20 00:31:43 +0100
commitf5495506c3c1300d249d403c36f92de71920dbeb (patch)
tree533846ed235d7158f616213e9a2e4e7e7eb9765c /arch/x86/lib/usercopy_64.c
parentbfa318ad52a23f1e303d176b44366cdd2bb71ad2 (diff)
downloadblackbird-op-linux-f5495506c3c1300d249d403c36f92de71920dbeb.tar.gz
blackbird-op-linux-f5495506c3c1300d249d403c36f92de71920dbeb.zip
x86: remove kernel_physical_mapping_init() from init section
Impact: fix crash with memory hotplug enabled kernel_physical_mapping_init() is called during memory hotplug so it does not belong in the init section. If the kernel is built with CONFIG_DEBUG_SECTION_MISMATCH=y on the make command line, arch/x86/mm/init_64.c is compiled with the -fno-inline-functions-called-once gcc option defeating inlining of kernel_physical_mapping_init() within init_memory_mapping(). When kernel_physical_mapping_init() is not inlined it is placed in the .init.text section according to the __init in it's current declaration. A later call to kernel_physical_mapping_init() during a memory hotplug operation encounters an int3 trap because the .init.text section memory has been freed. This patch eliminates the crash caused by the int3 trap by moving the non-inlined kernel_physical_mapping_init() from .init.text to .meminit.text. Signed-off-by: Gary Hade <garyhade@us.ibm.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/lib/usercopy_64.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud