mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 22:41:17 +02:00
nios2: call board_init_f_mem
We will need CONFIG_SYS_MALLOC_F_LEN to use serial uclass. So we shall undefine CONFIG_SYS_GENERIC_GLOBAL_DATA, and call board_init_f_mem() to allocates early malloc() memory with size of CONFIG_SYS_MALLOC_F_LEN in board_f.c. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -120,6 +120,16 @@ _reloc:
|
|||||||
stw r0, 4(sp)
|
stw r0, 4(sp)
|
||||||
mov fp, sp
|
mov fp, sp
|
||||||
|
|
||||||
|
/* Allocate and zero GD, update SP */
|
||||||
|
mov r4, sp
|
||||||
|
movhi r2, %hi(board_init_f_mem@h)
|
||||||
|
ori r2, r2, %lo(board_init_f_mem@h)
|
||||||
|
callr r2
|
||||||
|
|
||||||
|
/* Update stack- and frame-pointers */
|
||||||
|
mov sp, r2
|
||||||
|
mov fp, sp
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Call board_init_f -- never returns
|
* Call board_init_f -- never returns
|
||||||
*/
|
*/
|
||||||
|
@@ -7,6 +7,4 @@
|
|||||||
#ifndef _ASM_CONFIG_H_
|
#ifndef _ASM_CONFIG_H_
|
||||||
#define _ASM_CONFIG_H_
|
#define _ASM_CONFIG_H_
|
||||||
|
|
||||||
#define CONFIG_SYS_GENERIC_GLOBAL_DATA
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user