From: Simon Glass Date: Mon, 19 Jan 2015 22:16:12 -0700 Subject: [U-Boot] [PATCH v3 07/12] Allow architecture-specific memory reservation In-Reply-To: <1421730977-30077-1-git-send-email-sjg@chromium.org> References: <1421730977-30077-1-git-send-email-sjg@chromium.org> Message-ID: <1421730977-30077-8-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de All memory to be reserved for use after relocation by adding a new call to perform this reservation. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/board_f.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/board_f.c b/common/board_f.c index 3a4b32c..215108b 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, -- 2.2.0.rc0.207.ga3a616c