diff options
Diffstat (limited to 'xen/arch/x86/setup.c')
-rw-r--r-- | xen/arch/x86/setup.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 4bdae0fcd1..833f22e5ba 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -230,7 +230,6 @@ static void __init percpu_init_areas(void) static void __init init_idle_domain(void) { struct domain *idle_domain; - unsigned int i; /* Domain creation requires that scheduler structures are initialised. */ scheduler_init(); @@ -243,12 +242,6 @@ static void __init init_idle_domain(void) idle_vcpu[0] = this_cpu(curr_vcpu) = current; setup_idle_pagetable(); - - for (i = 0; i < NR_RESERVED_GDT_PAGES; ++i) - idle_domain->arch.mm_perdomain_pt[FIRST_RESERVED_GDT_PAGE + i] = - l1e_from_page(virt_to_page(boot_cpu_gdt_table) + i, - __PAGE_HYPERVISOR); - } static void __init srat_detect_node(int cpu) @@ -456,6 +449,7 @@ void __init __start_xen(unsigned long mbi_p) parse_video_info(); set_current((struct vcpu *)0xfffff000); /* debug sanity */ + idle_vcpu[0] = current; set_processor_id(0); /* needed early, for smp_processor_id() */ if ( cpu_has_efer ) rdmsrl(MSR_EFER, this_cpu(efer)); |