From: Simon Glass Date: Tue, 20 Jan 2015 05:16:12 +0000 (-0700) Subject: Allow architecture-specific memory reservation X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=146251f87eaebbd77ca9596391890b44cbda47fb;p=u-boot.git Allow architecture-specific memory reservation All memory to be reserved for use after relocation by adding a new call to perform this reservation. Signed-off-by: Simon Glass --- diff --git a/common/board_f.c b/common/board_f.c index 3a4b32c29d..215108ba06 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -807,6 +807,12 @@ static int initf_dm(void) return 0; } +/* Architecture-specific memory reservation */ +__weak int reserve_arch(void) +{ + return 0; +} + static init_fnc_t init_sequence_f[] = { #ifdef CONFIG_SANDBOX setup_ram_buf, @@ -970,6 +976,7 @@ static init_fnc_t init_sequence_f[] = { setup_machine, reserve_global_data, reserve_fdt, + reserve_arch, reserve_stacks, setup_dram_config, show_dram_config,