summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-03-10 13:46:33 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-03-28 16:36:30 +0100
commit5ab246b492fc5f4c5c90ab31a18cfeeb4c328632 (patch)
tree48988a6b0d4c5b327136282ea1fc7b6e26354f32
parented845fbb01197cd2ad2a7deef61d1ccbf8ce4687 (diff)
* xen/evt.c: Add 64bit variant
* xen/evt.c (hyp_intrinit): Fix hyp_set_callbacks for 64bit.
-rw-r--r--xen/evt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xen/evt.c b/xen/evt.c
index 2a84ef77..ae7e5d7a 100644
--- a/xen/evt.c
+++ b/xen/evt.c
@@ -95,8 +95,13 @@ void hyp_intrinit() {
form_int_mask();
curr_ipl = SPLHI;
hyp_shared_info.evtchn_mask[0] = int_mask[SPLHI];
+#ifdef __i386__
hyp_set_callbacks(KERNEL_CS, hyp_callback,
KERNEL_CS, hyp_failsafe_callback);
+#endif
+#ifdef __x86_64__
+ hyp_set_callbacks(hyp_callback, hyp_failsafe_callback, NULL);
+#endif
}
void hyp_evt_handler(evtchn_port_t port, void (*handler)(), int unit, spl_t spl) {