summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-11-17 01:03:00 +0100
committerAlexander Graf <agraf@suse.de>2016-11-17 14:18:56 +0100
commit5a37a2f0140c735ad6d8ca223a37fbfdc508622f (patch)
tree0749715ac0a6658303800e9657637a9f73b70b90 /arch/arm
parent215b1fb9fa43049aee34e824bfd994b335155750 (diff)
downloadu-boot-imx-5a37a2f0140c735ad6d8ca223a37fbfdc508622f.zip
u-boot-imx-5a37a2f0140c735ad6d8ca223a37fbfdc508622f.tar.gz
u-boot-imx-5a37a2f0140c735ad6d8ca223a37fbfdc508622f.tar.bz2
armv8: ls2080a: Declare spin tables as reserved for efi loader
The efi loader code has its own memory map, so it needs to be aware where the spin tables are located, to ensure that no code writes into those regions. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv8/fsl-layerscape/fdt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
index 1a8321b..0dae5fa 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <efi_loader.h>
#include <libfdt.h>
#include <fdt_support.h>
#include <phy.h>
@@ -105,6 +106,11 @@ remove_psci_node:
fdt_add_mem_rsv(blob, (uintptr_t)&secondary_boot_code,
*boot_code_size);
+#if defined(CONFIG_EFI_LOADER) && !defined(CONFIG_SPL_BUILD)
+ efi_add_memory_map((uintptr_t)&secondary_boot_code,
+ ALIGN(*boot_code_size, EFI_PAGE_SIZE) >> EFI_PAGE_SHIFT,
+ EFI_RESERVED_MEMORY_TYPE, false);
+#endif
}
#endif