diff options
Diffstat (limited to 'board/freescale/imx8qxp_arm2/spl.c')
-rw-r--r-- | board/freescale/imx8qxp_arm2/spl.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/board/freescale/imx8qxp_arm2/spl.c b/board/freescale/imx8qxp_arm2/spl.c index e9cb7eb532..c1a77a86e2 100644 --- a/board/freescale/imx8qxp_arm2/spl.c +++ b/board/freescale/imx8qxp_arm2/spl.c @@ -208,8 +208,8 @@ void spl_board_prepare_for_boot(void) void board_init_f(ulong dummy) { - /* Clear global data */ - memset((void *)gd, 0, sizeof(gd_t)); + /* Clear the BSS. */ + memset(__bss_start, 0, __bss_end - __bss_start); arch_cpu_init(); @@ -219,9 +219,6 @@ void board_init_f(ulong dummy) preloader_console_init(); - /* Clear the BSS. */ - memset(__bss_start, 0, __bss_end - __bss_start); - board_init_r(NULL, 0); } |