microblaze: Fix gd_t address which is placed at the end of BRAM
Setup gd from ASM to be availalbe for board_init_r. Setting it up in spl_board_init is too late when MALLOC is used. Space for gd is located behind MALLOC area at the end of BRAM. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
e4a4743e48
commit
9cef20b109
@ -25,8 +25,6 @@ u32 spl_boot_device(void)
|
|||||||
/* Board initialization after bss clearance */
|
/* Board initialization after bss clearance */
|
||||||
void spl_board_init(void)
|
void spl_board_init(void)
|
||||||
{
|
{
|
||||||
gd = (gd_t *)CONFIG_SPL_STACK_ADDR;
|
|
||||||
|
|
||||||
/* enable console uart printing */
|
/* enable console uart printing */
|
||||||
preloader_console_init();
|
preloader_console_init();
|
||||||
}
|
}
|
||||||
|
@ -152,6 +152,7 @@ clear_bss:
|
|||||||
#ifndef CONFIG_SPL_BUILD
|
#ifndef CONFIG_SPL_BUILD
|
||||||
brai board_init_f
|
brai board_init_f
|
||||||
#else
|
#else
|
||||||
|
addi r31, r0, CONFIG_SYS_SPL_MALLOC_END
|
||||||
brai board_init_r
|
brai board_init_r
|
||||||
#endif
|
#endif
|
||||||
1: bri 1b
|
1: bri 1b
|
||||||
|
Loading…
Reference in New Issue
Block a user