aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/head.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kernel/head.S')
-rw-r--r--arch/arm64/kernel/head.S8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S
index 3ba0fc02c0de..69dafe9621fd 100644
--- a/arch/arm64/kernel/head.S
+++ b/arch/arm64/kernel/head.S
@@ -37,8 +37,12 @@
37 37
38#define KERNEL_RAM_VADDR (PAGE_OFFSET + TEXT_OFFSET) 38#define KERNEL_RAM_VADDR (PAGE_OFFSET + TEXT_OFFSET)
39 39
40#if (KERNEL_RAM_VADDR & 0xfffff) != 0x80000 40#if (TEXT_OFFSET & 0xf) != 0
41#error KERNEL_RAM_VADDR must start at 0xXXX80000 41#error TEXT_OFFSET must be at least 16B aligned
42#elif (PAGE_OFFSET & 0xfffff) != 0
43#error PAGE_OFFSET must be at least 2MB aligned
44#elif TEXT_OFFSET > 0xfffff
45#error TEXT_OFFSET must be less than 2MB
42#endif 46#endif
43 47
44 .macro pgtbl, ttb0, ttb1, virt_to_phys 48 .macro pgtbl, ttb0, ttb1, virt_to_phys