summaryrefslogtreecommitdiff
path: root/include/system-constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/system-constants.h')
-rw-r--r--include/system-constants.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/system-constants.h b/include/system-constants.h
index de66fece95..83b41b384f 100644
--- a/include/system-constants.h
+++ b/include/system-constants.h
@@ -19,4 +19,14 @@
#endif
#endif
+/*
+ * Typically, we have the SPL malloc pool at the end of the BSS area.
+ */
+#ifdef CONFIG_HAS_CUSTOM_SPL_MALLOC_START
+#define SYS_SPL_MALLOC_START CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR
+#else
+#define SYS_SPL_MALLOC_START (CONFIG_SPL_BSS_START_ADDR + \
+ CONFIG_SPL_BSS_MAX_SIZE)
+#endif
+
#endif