]> git.baikalelectronics.ru Git - kernel.git/commit
x86, realmode: Set real_mode permissions early
authorYinghai Lu <yinghai@kernel.org>
Thu, 24 Jan 2013 20:19:47 +0000 (12:19 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 29 Jan 2013 23:12:25 +0000 (15:12 -0800)
commite44664946cf88290ee8a66aac84625ead99d7729
tree9e5c80dbe59150698b46cbdb38fde430113c8143
parent449168f5a8a4c8ab932d5cb379b69bd069e73847
x86, realmode: Set real_mode permissions early

Trampoline code is executed by APs with kernel low mapping on 64bit.
We need to set trampoline code to EXEC early before we boot APs.

Found the problem after switching to #PF handler set page table,
and we do not set initial kernel low mapping with EXEC anymore in
arch/x86/kernel/head_64.S.

Change to use early_initcall instead that will make sure trampoline
will have EXEC set.

-v2: Merge two comments according to Borislav Petkov <bp@alien8.de>

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