summaryrefslogtreecommitdiff
path: root/arch/arm/lib/spl.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/lib/spl.c')
-rw-r--r--arch/arm/lib/spl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c
index 75ab546923..dfcc596815 100644
--- a/arch/arm/lib/spl.c
+++ b/arch/arm/lib/spl.c
@@ -28,6 +28,9 @@ void __weak board_init_f(ulong dummy)
/* Clear the BSS. */
memset(__bss_start, 0, __bss_end - __bss_start);
+ /* Set global data pointer. */
+ gd = &gdata;
+
board_init_r(NULL, 0);
}