[PATCH v7 03/27] x86, realmode: set real_mode permissions early

From: Yinghai Lu
Date: Tue Dec 18 2012 - 02:23:16 EST

We need to set trampoline code to EXEC early before we do smp
AP bootings.

Found the problem after switching to #PF handler set page table.

Change to use early_initcall instead.

Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx>
arch/x86/realmode/init.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/x86/realmode/init.c b/arch/x86/realmode/init.c
index 8045026..0b7e840 100644
--- a/arch/x86/realmode/init.c
+++ b/arch/x86/realmode/init.c
@@ -111,5 +111,4 @@ static int __init set_real_mode_permissions(void)

return 0;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/