Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/xen/xen_apic.c
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | static struct xen_ipi_handler xen_ipis[] = | ||||
[IPI_TO_IDX(IPI_STOP)] = { xen_cpustop_handler, "st" }, | [IPI_TO_IDX(IPI_STOP)] = { xen_cpustop_handler, "st" }, | ||||
[IPI_TO_IDX(IPI_SUSPEND)] = { xen_cpususpend_handler, "sp" }, | [IPI_TO_IDX(IPI_SUSPEND)] = { xen_cpususpend_handler, "sp" }, | ||||
[IPI_TO_IDX(IPI_STOP_HARD)] = { xen_cpustophard_handler, "sth" }, | [IPI_TO_IDX(IPI_STOP_HARD)] = { xen_cpustophard_handler, "sth" }, | ||||
}; | }; | ||||
#endif | #endif | ||||
/*------------------------------- Per-CPU Data -------------------------------*/ | /*------------------------------- Per-CPU Data -------------------------------*/ | ||||
#ifdef SMP | #ifdef SMP | ||||
DPCPU_DEFINE(xen_intr_handle_t, ipi_handle[nitems(xen_ipis)]); | DPCPU_GLOBAL_DEFINE(xen_intr_handle_t, ipi_handle[nitems(xen_ipis)]); | ||||
#endif | #endif | ||||
/*------------------------------- Xen PV APIC --------------------------------*/ | /*------------------------------- Xen PV APIC --------------------------------*/ | ||||
static void | static void | ||||
xen_pv_lapic_create(u_int apic_id, int boot_cpu) | xen_pv_lapic_create(u_int apic_id, int boot_cpu) | ||||
{ | { | ||||
#ifdef SMP | #ifdef SMP | ||||
▲ Show 20 Lines • Show All 484 Lines • Show Last 20 Lines |