summaryrefslogtreecommitdiff
path: root/lib/asm-offsets.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asm-offsets.c')
-rw-r--r--lib/asm-offsets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c
index 6ea7b03..129bc3e 100644
--- a/lib/asm-offsets.c
+++ b/lib/asm-offsets.c
@@ -28,6 +28,9 @@ int main(void)
DEFINE(GD_SIZE, sizeof(struct global_data));
DEFINE(GD_BD, offsetof(struct global_data, bd));
+#ifdef CONFIG_SYS_MALLOC_F_LEN
+ DEFINE(GD_MALLOC_BASE, offsetof(struct global_data, malloc_base));
+#endif
#if defined(CONFIG_ARM)