diff options
author | Peng Fan <peng.fan@nxp.com> | 2020-08-06 12:42:50 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-14 15:18:30 -0400 |
commit | 384d5cfe5d7e391a5584492bb2ce5794cbd691a9 (patch) | |
tree | 8d363041a6682d7321ca0bafdbe1e706cad7c658 /drivers/xen/events.c | |
parent | 673fd82c507cf2a674ca6ec6d84d8d2854a6d78c (diff) | |
download | u-boot-384d5cfe5d7e391a5584492bb2ce5794cbd691a9.tar.gz u-boot-384d5cfe5d7e391a5584492bb2ce5794cbd691a9.tar.xz u-boot-384d5cfe5d7e391a5584492bb2ce5794cbd691a9.zip |
serial: serial_xen: Add Xen PV serial driver
Add support for Xen para-virtualized serial driver. This
driver fully supports serial console for the virtual machine.
Please note that as the driver is initialized late, so no banner
nor memory size is visible.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/xen/events.c')
-rw-r--r-- | drivers/xen/events.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index b4c84814c5..beaccded69 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c @@ -23,6 +23,8 @@ #include <xen/events.h> #include <xen/hvm.h> +extern u32 console_evtchn; + #define NR_EVS 1024 /** @@ -49,6 +51,8 @@ void unbind_all_ports(void) struct vcpu_info *vcpu_info = &s->vcpu_info[cpu]; for (i = 0; i < NR_EVS; i++) { + if (i == console_evtchn) + continue; if (test_and_clear_bit(i, bound_ports)) { printf("port %d still bound!\n", i); unbind_evtchn(i); |