diff options
author | Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> | 2020-08-06 12:43:00 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-14 15:18:30 -0400 |
commit | d17f6698b8e07b15941dd888a4b2d69aa046ae1e (patch) | |
tree | 310aa01f4f023a24c16807e2998d10fe079881f5 /drivers | |
parent | 53d725c74e825cdbca9c278514a44b1aa15513e3 (diff) | |
download | u-boot-d17f6698b8e07b15941dd888a4b2d69aa046ae1e.zip u-boot-d17f6698b8e07b15941dd888a4b2d69aa046ae1e.tar.gz u-boot-d17f6698b8e07b15941dd888a4b2d69aa046ae1e.tar.bz2 |
board: xen: De-initialize before jumping to Linux
Free resources used by Xen board before jumping to Linux kernel.
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')
-rw-r--r-- | drivers/xen/hypervisor.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/xen/hypervisor.c b/drivers/xen/hypervisor.c index 58b0865..178c206 100644 --- a/drivers/xen/hypervisor.c +++ b/drivers/xen/hypervisor.c @@ -242,3 +242,11 @@ void xen_init(void) init_gnttab(); } +void xen_fini(void) +{ + debug("%s\n", __func__); + + fini_gnttab(); + fini_xenbus(); + fini_events(); +} |