diff options
author | Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> | 2020-08-06 12:42:49 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-14 22:18:30 +0300 |
commit | 673fd82c507cf2a674ca6ec6d84d8d2854a6d78c (patch) | |
tree | e1ff4e490d5f7da907994a6d6b1ff3b180a9e420 /drivers/xen/hypervisor.c | |
parent | 486544161fa97accff12c2fc585ffe218b8dfc52 (diff) | |
download | u-boot-673fd82c507cf2a674ca6ec6d84d8d2854a6d78c.tar.xz |
xen: Port Xen event channel driver from mini-os
Make required updates to run on u-boot. Strip functionality
not needed by U-boot.
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>
Diffstat (limited to 'drivers/xen/hypervisor.c')
-rw-r--r-- | drivers/xen/hypervisor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/xen/hypervisor.c b/drivers/xen/hypervisor.c index 108e9701d6..63fed6074f 100644 --- a/drivers/xen/hypervisor.c +++ b/drivers/xen/hypervisor.c @@ -20,6 +20,7 @@ #include <linux/bug.h> #include <xen/hvm.h> +#include <xen/events.h> #include <xen/interface/memory.h> #define active_evtchns(cpu, sh, idx) \ @@ -163,9 +164,7 @@ void do_hypervisor_callback(struct pt_regs *regs) l2 &= ~(1UL << l2i); port = (l1i * (sizeof(unsigned long) * 8)) + l2i; - /* TODO: handle new event: do_event(port, regs); */ - /* Suppress -Wunused-but-set-variable */ - (void)(port); + do_event(port, regs); } } @@ -236,5 +235,6 @@ void xen_init(void) debug("%s\n", __func__); map_shared_info(NULL); + init_events(); } |