summaryrefslogtreecommitdiff
path: root/include/compiler.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-06-03 04:26:44 +0300
committerTom Rini <trini@konsulko.com>2020-07-09 00:21:46 +0300
commit3428faf23af5079e80c53d0d8473af30d3c19fca (patch)
tree77634e4cb1e1356d3eacadff0ba89151dd305ea1 /include/compiler.h
parent84dd1902443cf500b2536eeb14d6662c6b502698 (diff)
downloadu-boot-3428faf23af5079e80c53d0d8473af30d3c19fca.tar.xz
Update MEM_SUPPORT_64BIT_DATA to be always defined
Define this macro always so we don't need the preprocessor to check it. Convert the users to #if instead of #ifdef. Note that '#if MEM_SUPPORT_64BIT_DATA' does not give an error if the macro is not define. It just assumes zero. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/compiler.h b/include/compiler.h
index ed74c272b8..90b7afae53 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -145,7 +145,9 @@ typedef unsigned long int uintptr_t;
#define unlikely(x) __builtin_expect(!!(x), 0)
#ifdef __LP64__
-#define MEM_SUPPORT_64BIT_DATA
+#define MEM_SUPPORT_64BIT_DATA 1
+#else
+#define MEM_SUPPORT_64BIT_DATA 0
#endif
#endif