x86, realmode: Separate real_mode reserve and setup
authorYinghai Lu <yinghai@kernel.org>
Thu, 24 Jan 2013 20:19:51 +0000 (12:19 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 29 Jan 2013 23:13:24 +0000 (15:13 -0800)
commit4f7b92263ad68cdc72b11808320d9c881bfa857e
tree6aeddf7284dec1acf7d7ad7296ab57d9ba80787c
parent9735e91e9c29c0d8fe432aef1152e43e50bdb316
x86, realmode: Separate real_mode reserve and setup

After we switch to use #PF handler help to set page table, init_level4_pgt
will only have entries set after init_mem_mapping().
We need to move copying init_level4_pgt to trampoline_pgd after that.

So split reserve and setup, and move the setup after init_mem_mapping()

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1359058816-7615-11-git-send-email-yinghai@kernel.org
Cc: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
Acked-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/realmode.h
arch/x86/kernel/setup.c
arch/x86/realmode/init.c