mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
xen/intr: correct misuses of Xen handle pointer type
Fix a few spots where handle pointers were incorrectly used. Luckily these appear rarely triggered given how long they've been lurking. Fixes:76acc41fb7
("Implement vector callback for PVHVM and unify event channel implementations") Fixes:9f40021f28
("Introduce a new, HVM compatible, paravirtualized timer driver for Xen.") MFC after: 2 weeks Reviewed by: royger
This commit is contained in:
parent
b3195ed2a3
commit
c880f12f5a
|
@ -866,7 +866,7 @@ xen_intr_bind_virq(device_t dev, u_int virq, u_int cpu,
|
|||
if (error != 0) {
|
||||
evtchn_close_t close = { .port = bind_virq.port };
|
||||
|
||||
xen_intr_unbind(*port_handlep);
|
||||
xen_intr_unbind(port_handlep);
|
||||
if (HYPERVISOR_event_channel_op(EVTCHNOP_close, &close))
|
||||
panic("EVTCHNOP_close failed");
|
||||
return (error);
|
||||
|
@ -923,7 +923,7 @@ xen_intr_alloc_and_bind_ipi(u_int cpu, driver_filter_t filter,
|
|||
if (error != 0) {
|
||||
evtchn_close_t close = { .port = bind_ipi.port };
|
||||
|
||||
xen_intr_unbind(*port_handlep);
|
||||
xen_intr_unbind(port_handlep);
|
||||
if (HYPERVISOR_event_channel_op(EVTCHNOP_close, &close))
|
||||
panic("EVTCHNOP_close failed");
|
||||
return (error);
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
struct xentimer_pcpu_data {
|
||||
uint64_t timer;
|
||||
uint64_t last_processed;
|
||||
void *irq_handle;
|
||||
xen_intr_handle_t irq_handle;
|
||||
};
|
||||
|
||||
DPCPU_DEFINE(struct xentimer_pcpu_data, xentimer_pcpu);
|
||||
|
|
Loading…
Reference in a new issue