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>
This commit is contained in:
committed by
Tom Rini
parent
53d725c74e
commit
d17f6698b8
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user