Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/xen/xen_arch_intr.c
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | |||||
xen_arch_intr_init(void) | xen_arch_intr_init(void) | ||||
{ | { | ||||
mtx_init(&xen_intr_x86_lock, "xen-x86-table-lock", NULL, MTX_DEF); | mtx_init(&xen_intr_x86_lock, "xen-x86-table-lock", NULL, MTX_DEF); | ||||
intr_register_pic(&xen_intr_pic); | intr_register_pic(&xen_intr_pic); | ||||
} | } | ||||
void | |||||
xen_arch_intr_intrcnt_init(u_int cpu, u_long **intrcntpp) | |||||
{ | |||||
char buf[MAXCOMLEN + 1]; | |||||
snprintf(buf, sizeof(buf), "cpu%d:xen", cpu); | |||||
intrcnt_add(buf, intrcntpp); | |||||
} | |||||
/** | /** | ||||
* Search for an already allocated but currently unused Xen interrupt | * Search for an already allocated but currently unused Xen interrupt | ||||
* source object. | * source object. | ||||
* | * | ||||
* \param type Restrict the search to interrupt sources of the given | * \param type Restrict the search to interrupt sources of the given | ||||
* type. | * type. | ||||
* | * | ||||
* \return A pointer to a free Xen interrupt source object or NULL. | * \return A pointer to a free Xen interrupt source object or NULL. | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |