aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/enlighten.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index da33e0c5870d..80f4c5343495 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -42,6 +42,7 @@
42#include <asm/xen/hypervisor.h> 42#include <asm/xen/hypervisor.h>
43#include <asm/fixmap.h> 43#include <asm/fixmap.h>
44#include <asm/processor.h> 44#include <asm/processor.h>
45#include <asm/proto.h>
45#include <asm/msr-index.h> 46#include <asm/msr-index.h>
46#include <asm/setup.h> 47#include <asm/setup.h>
47#include <asm/desc.h> 48#include <asm/desc.h>
@@ -912,7 +913,6 @@ static const struct machine_ops __initdata xen_machine_ops = {
912 .emergency_restart = xen_emergency_restart, 913 .emergency_restart = xen_emergency_restart,
913}; 914};
914 915
915
916/* First C function to be called on Xen boot */ 916/* First C function to be called on Xen boot */
917asmlinkage void __init xen_start_kernel(void) 917asmlinkage void __init xen_start_kernel(void)
918{ 918{
@@ -980,6 +980,11 @@ asmlinkage void __init xen_start_kernel(void)
980 if (!xen_initial_domain()) 980 if (!xen_initial_domain())
981 __supported_pte_mask &= ~(_PAGE_PWT | _PAGE_PCD); 981 __supported_pte_mask &= ~(_PAGE_PWT | _PAGE_PCD);
982 982
983#ifdef CONFIG_X86_64
984 /* Work out if we support NX */
985 check_efer();
986#endif
987
983 /* Don't do the full vcpu_info placement stuff until we have a 988 /* Don't do the full vcpu_info placement stuff until we have a
984 possible map and a non-dummy shared_info. */ 989 possible map and a non-dummy shared_info. */
985 per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0]; 990 per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0];