summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2024-12-31 10:58:36 -0600
committerTom Rini <[email protected]>2024-12-31 10:58:36 -0600
commitf4e871196568a5a8cc4d150e11f23d902e740286 (patch)
tree440c8b7a3fcdf50a9a8499836fbf4dccdc1b1f0f /include
parent6c76f67ac5f0c796610b624fb839e3f9fc19f775 (diff)
parent43ca65b30555d9b8e2a31f71d8756aa8c0ffbcf5 (diff)
Merge patch series "Select CONFIG_64BIT for sandbox64 and x86_64"
Andrew Goodbody <[email protected]> says: Picking up a series from Dan Carpenter and applying requested changes for v2. I had previously set CONFIG_64BIT for arm64. This patchset does the same thing for sandbox and x86_64. (Mips and riscv were already doing it). This CONFIG option is used in the Makefile to determine if it's a 32 or 64 bit system for the CHECKER. Makefile 1052 # the checker needs the correct machine size 1053 CHECKFLAGS += $(if $(CONFIG_64BIT),-m64,-m32) Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include')
-rw-r--r--include/limits.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/limits.h b/include/limits.h
index 4700cc7a59f..1d0bbf69be7 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -9,7 +9,8 @@
#define UINT32_MAX 0xffffffffU
#define UINT64_MAX 0xffffffffffffffffULL
-#ifdef CONFIG_64BIT
+#if (defined(CONFIG_64BIT) && !defined(CONFIG_SPL_BUILD)) || \
+ (defined(CONFIG_SPL_64BIT) && defined(CONFIG_SPL_BUILD))
#define UINTPTR_MAX UINT64_MAX
#else
#define UINTPTR_MAX UINT32_MAX