mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
xen: Limit execution to EL1 only
Xen core_init() is calling HVC which should be called from EL1 level that's why do Xen initialization only when U-Boot runs in EL1. Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
@@ -264,8 +264,15 @@ void clear_evtchn(uint32_t port)
|
|||||||
|
|
||||||
int xen_init(void)
|
int xen_init(void)
|
||||||
{
|
{
|
||||||
|
int el = current_el();
|
||||||
|
|
||||||
debug("%s\n", __func__);
|
debug("%s\n", __func__);
|
||||||
|
|
||||||
|
if (el != 1) {
|
||||||
|
puts("XEN:\tnot running from EL1\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
map_shared_info(NULL);
|
map_shared_info(NULL);
|
||||||
init_events();
|
init_events();
|
||||||
init_xenbus();
|
init_xenbus();
|
||||||
|
Reference in New Issue
Block a user