summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-03-11 11:36:54 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-03-15 08:49:46 +0100
commit7aa093d1f47e614869f66a1fa1bdf52d0defa0be (patch)
tree29dd6d24ab39cdd754195675b31040496178ba8b /include
parentb4555a32ef28e47a12199e56afb59982a81609c2 (diff)
downloadbarebox-7aa093d1f47e614869f66a1fa1bdf52d0defa0be.tar.gz
barebox-7aa093d1f47e614869f66a1fa1bdf52d0defa0be.tar.xz
ARM: mmu64: fix build for non-MMU configurations
barebox only catches null pointer dereferences when MMU support is enabled. Thus the empty stubs should always be used on !CONFIG_MMU systems, disregarding whether CONFIG_ARCH_HAS_ZERO_PAGE is selected or not. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/zero_page.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zero_page.h b/include/zero_page.h
index ad6861f240..519e65be76 100644
--- a/include/zero_page.h
+++ b/include/zero_page.h
@@ -4,7 +4,7 @@
#include <common.h>
-#if defined CONFIG_ARCH_HAS_ZERO_PAGE
+#if defined CONFIG_ARCH_HAS_ZERO_PAGE && defined CONFIG_MMU
/*
* zero_page_faulting - fault when accessing the zero page