summaryrefslogtreecommitdiff
path: root/make_helpers/armv7-a-cpus.mk
diff options
context:
space:
mode:
authorEtienne Carriere <etienne.carriere@linaro.org>2017-11-08 13:53:47 +0100
committerEtienne Carriere <etienne.carriere@linaro.org>2017-11-08 13:53:47 +0100
commit51b992ecec92b9dcca410a2c3716f45daca5afd1 (patch)
tree2441faa33440bd7c1e15211c5c71118ef27c91e0 /make_helpers/armv7-a-cpus.mk
parent1ca8d023161bd94b96a766a2e3dd31bd41fbb245 (diff)
ARMv7 may not support large page addressing
ARCH_SUPPORTS_LARGE_PAGE_ADDRESSING allows build environment to handle specific case when target ARMv7 core only supports 32bit MMU descriptor mode. If ARMv7 based platform does not set ARM_CORTEX_Ax=yes, platform shall define ARMV7_SUPPORTS_LARGE_PAGE_ADDRESSING to enable large page addressing support. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'make_helpers/armv7-a-cpus.mk')
-rw-r--r--make_helpers/armv7-a-cpus.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/make_helpers/armv7-a-cpus.mk b/make_helpers/armv7-a-cpus.mk
index 5a1c75ce..c6491aa8 100644
--- a/make_helpers/armv7-a-cpus.mk
+++ b/make_helpers/armv7-a-cpus.mk
@@ -31,3 +31,12 @@ march32-neon-$(ARM_WITH_NEON) := -mfpu=neon
march32-set-yes ?= -march=armv7-a
march32-directive := ${march32-set-yes} ${march32-neon-yes}
endif
+
+# Platform may override these extension support directives:
+#
+# ARMV7_SUPPORTS_LARGE_PAGE_ADDRESSING
+# Defined if core supports the Large Page Addressing extension.
+
+ifeq ($(filter yes,$(ARM_CORTEX_A7) $(ARM_CORTEX_A12) $(ARM_CORTEX_A15) $(ARM_CORTEX_A17)),yes)
+$(eval $(call add_define,ARMV7_SUPPORTS_LARGE_PAGE_ADDRESSING))
+endif