summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-24 17:44:58 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-24 17:44:58 +0100
commit7bc36d605365dfd011b10da42a84ac53f0cd442d (patch)
tree2a94fe75efc6c9a708d9acc790b5c8cdddabbf42
parentff93091a1eb79d59f4939a3260a64a5d241c0937 (diff)
Xen: Fix ivect prototype
448889a4f0c3 ("Use -Wstrict-prototypes and fix warnings") simplified the prototype of ivect, so we have to update the Xen version.
-rw-r--r--xen/evt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/evt.c b/xen/evt.c
index 296101aa..0ff5c694 100644
--- a/xen/evt.c
+++ b/xen/evt.c
@@ -30,7 +30,7 @@ int int_mask[NSPL];
spl_t curr_ipl;
-void (*ivect[NEVNT])();
+interrupt_handler_fn ivect[NEVNT];
int intpri[NEVNT];
int iunit[NEVNT];
@@ -63,7 +63,7 @@ void hyp_c_callback(void *ret_addr, void *regs)
if (ivect[n]) {
spl_t spl = splx(intpri[n]);
asm ("lock; and %1,%0":"=m"(hyp_shared_info.evtchn_pending[i]):"r"(~(1UL<<j)));
- ivect[n](iunit[n], spl, ret_addr, regs);
+ ((void(*)(int, int, const char*, struct i386_interrupt_state*))(ivect[n]))(iunit[n], spl, ret_addr, regs);
splx_cli(spl);
} else {
printf("warning: lost unbound event %d\n", n);