aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2014-11-17 13:50:21 +0100
committerKees Cook <keescook@google.com>2015-10-07 13:13:22 -0700
commit20ea1314c6168e460eff2a65c15ee15fab0834b5 (patch)
treebcb6fb0449d760eef8dfe33ba499feed0301e836
parent779890a0f6bfbe33e59e5ae7dbfa642245ed9e06 (diff)
downloadlinux-linaro-stable-20ea1314c6168e460eff2a65c15ee15fab0834b5.tar.gz
UPSTREAM: arm64/efi: set EFI_ALLOC_ALIGN to 64 KB
Set EFI_ALLOC_ALIGN to 64 KB so that all allocations done by the stub are naturally compatible with a 64 KB granule kernel. Acked-by: Leif Lindholm <leif.lindholm@linaro.org> Tested-by: Leif Lindholm <leif.lindholm@linaro.org> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> (cherry picked from commit 1bd0abb0c924a8b28c6466cdd6bb34ea053541dc) Signed-off-by: Tomasz Figa <tfiga@chromium.org> Bug: 24475017 Change-Id: I3de82baa1ed24b38152dc9c1402816fc61e5157c Signed-off-by: Kees Cook <keescook@google.com>
-rw-r--r--arch/arm64/include/asm/efi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/efi.h b/arch/arm64/include/asm/efi.h
index a34fd3b12e2b..71291253114f 100644
--- a/arch/arm64/include/asm/efi.h
+++ b/arch/arm64/include/asm/efi.h
@@ -44,4 +44,6 @@ extern void efi_idmap_init(void);
#define efi_call_early(f, ...) sys_table_arg->boottime->f(__VA_ARGS__)
+#define EFI_ALLOC_ALIGN SZ_64K
+
#endif /* _ASM_EFI_H */