-
ulong board_init_f_alloc_reserve(ulong top)Boot Loader/U-BOOT 2019. 9. 25. 00:2412345678910ulong board_init_f_alloc_reserve(ulong top){/* Reserve early malloc arena */#if defined(CONFIG_SYS_MALLOC_F)top -= CONFIG_SYS_MALLOC_F_LEN;#endif/* LAST : reserve GD (rounded up to a multiple of 16 bytes) */top = rounddown(top-sizeof(struct global_data), 16);return top;}
cs 50라인이 실행되면서 top은 0x43E00000-0x00000400 = 0x43DFFC00이다
malloc 영역과 global_data영역을 지정해주는것 같다.
'Boot Loader > U-BOOT' 카테고리의 다른 글
static const init_fnc_t init_sequence_f[] (0) 2019.09.25 int initcall_run_list(const init_fnc_t init_sequence[]) (0) 2019.09.25 void board_init_f(ulong boot_flags) (0) 2019.09.25 /common/init/board_init.c (0) 2019.09.25 U-BOOT (0) 2019.09.23