summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-01-28 17:22:22 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-01-30 11:04:49 +0000
commit05532260aee0302e43a4935a402c7b9268036267 (patch)
treef8d94e47280d41f0cc1b612975c0754dc625c056 /src/arch
parentab92f26a13f4656821f9dff93f180cb1a33c1c3e (diff)
downloadcoreboot-05532260aee0302e43a4935a402c7b9268036267.tar.xz
selfload: check target memory type in selfload_check
Currently, selflock_check() verifies that the binary is loaded in an usable RAM area. Extend its functionality so we can also check that BL31 is loaded in a manually reserved area, and fail early if the range is not protected. Change-Id: Iecdeedd9e8da67f73ac47d2a82e85b306469a626 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://review.coreboot.org/c/31122 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm64/arm_tf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/arm64/arm_tf.c b/src/arch/arm64/arm_tf.c
index eaf873965f..c0526e08d5 100644
--- a/src/arch/arm64/arm_tf.c
+++ b/src/arch/arm64/arm_tf.c
@@ -19,6 +19,7 @@
#include <arch/transition.h>
#include <arm_tf.h>
#include <assert.h>
+#include <bootmem.h>
#include <cbfs.h>
#include <program_loading.h>