summaryrefslogtreecommitdiffstats
path: root/arch/arc/config.mk
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2014-12-24 17:00:29 +0300
committerAlexey Brodkin <abrodkin@synopsys.com>2015-01-15 22:38:42 +0300
commitdcb431e723f132d0df63fb1e711042a6bbfc3a6a (patch)
treed1d734a4f5809d232de35e3fb504b5f00af7cee1 /arch/arc/config.mk
parentc0e9535e1d582ec089c743b705752392fcf3d9a2 (diff)
downloadtalos-obmc-uboot-dcb431e723f132d0df63fb1e711042a6bbfc3a6a.tar.gz
talos-obmc-uboot-dcb431e723f132d0df63fb1e711042a6bbfc3a6a.zip
arc: add dependences on MMU presence
Depending on MMU presence in CPU there're differences in HW behavior. For example address of instruction that caused exception is put in ECR register if MMU exists and in ERET register otherwise. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Igor Guryanov <guryanov@synopsys.com>
Diffstat (limited to 'arch/arc/config.mk')
-rw-r--r--arch/arc/config.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arc/config.mk b/arch/arc/config.mk
index e408800a91..5321987a56 100644
--- a/arch/arc/config.mk
+++ b/arch/arc/config.mk
@@ -21,6 +21,10 @@ ifeq ($(CROSS_COMPILE),)
CROSS_COMPILE := $(ARC_CROSS_COMPILE)
endif
+ifdef CONFIG_ARC_MMU_VER
+CONFIG_MMU = 1
+endif
+
PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2
# Needed for relocation
OpenPOWER on IntegriCloud