diff options
author | Oleksandr Andrushchenko | 2020-08-06 12:43:00 +0300 |
---|---|---|
committer | Tom Rini | 2020-08-14 15:18:30 -0400 |
commit | d17f6698b8e07b15941dd888a4b2d69aa046ae1e (patch) | |
tree | 310aa01f4f023a24c16807e2998d10fe079881f5 /board | |
parent | 53d725c74e825cdbca9c278514a44b1aa15513e3 (diff) |
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 'board')
-rw-r--r-- | board/xen/xenguest_arm64/xenguest_arm64.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/xen/xenguest_arm64/xenguest_arm64.c b/board/xen/xenguest_arm64/xenguest_arm64.c index cd3693892a0..cce54369bb3 100644 --- a/board/xen/xenguest_arm64/xenguest_arm64.c +++ b/board/xen/xenguest_arm64/xenguest_arm64.c @@ -12,6 +12,7 @@ #include <dm.h> #include <errno.h> #include <malloc.h> +#include <xen.h> #include <asm/io.h> #include <asm/armv8/mmu.h> @@ -194,3 +195,8 @@ int print_cpuinfo(void) return 0; } +void board_cleanup_before_linux(void) +{ + xen_fini(); +} + |