Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/mp_machdep.c
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | cpu_mp_start(void) | ||||
/* Probe logical/physical core configuration. */ | /* Probe logical/physical core configuration. */ | ||||
topo_probe(); | topo_probe(); | ||||
assign_cpu_ids(); | assign_cpu_ids(); | ||||
mptramp_la57 = la57; | mptramp_la57 = la57; | ||||
/* Start each Application Processor */ | /* Start each Application Processor */ | ||||
init_ops.start_all_aps(); | start_all_aps(); | ||||
set_interrupt_apic_ids(); | set_interrupt_apic_ids(); | ||||
#if defined(DEV_ACPI) && MAXMEMDOM > 1 | #if defined(DEV_ACPI) && MAXMEMDOM > 1 | ||||
acpi_pxm_set_cpu_locality(); | acpi_pxm_set_cpu_locality(); | ||||
#endif | #endif | ||||
} | } | ||||
▲ Show 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | mp_realloc_pcpu(int cpuid, int domain) | ||||
/* XXX old pcpu page leaked. */ | /* XXX old pcpu page leaked. */ | ||||
} | } | ||||
#endif | #endif | ||||
/* | /* | ||||
* start each AP in our list | * start each AP in our list | ||||
*/ | */ | ||||
int | int | ||||
native_start_all_aps(void) | start_all_aps(void) | ||||
{ | { | ||||
u_int64_t *pt5, *pt4, *pt3, *pt2; | u_int64_t *pt5, *pt4, *pt3, *pt2; | ||||
u_int32_t mpbioswarmvec; | u_int32_t mpbioswarmvec; | ||||
int apic_id, cpu, domain, i, xo; | int apic_id, cpu, domain, i, xo; | ||||
u_char mpbiosreason; | u_char mpbiosreason; | ||||
mtx_init(&ap_boot_mtx, "ap boot", NULL, MTX_SPIN); | mtx_init(&ap_boot_mtx, "ap boot", NULL, MTX_SPIN); | ||||
▲ Show 20 Lines • Show All 739 Lines • Show Last 20 Lines |