xen/arch/x86/setup.c- static void __init init_idle_domain(void)
- {
- struct domain *idle_domain;
-
-
- scheduler_init();
-
- idle_domain = domain_create(IDLE_DOMAIN_ID, 0, 0);
- if ( (idle_domain == NULL) || (alloc_vcpu(idle_domain, 0, 0) == NULL) )
- BUG();
-
- set_current(idle_domain->vcpu[0]);
- idle_vcpu[0] = this_cpu(curr_vcpu) = current;
-
- setup_idle_pagetable();
- }
|