Skip to content
Snippets Groups Projects
Commit 146251f8 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 8e899af0
No related branches found
No related tags found
No related merge requests found
...@@ -807,6 +807,12 @@ static int initf_dm(void) ...@@ -807,6 +807,12 @@ static int initf_dm(void)
return 0; return 0;
} }
/* Architecture-specific memory reservation */
__weak int reserve_arch(void)
{
return 0;
}
static init_fnc_t init_sequence_f[] = { static init_fnc_t init_sequence_f[] = {
#ifdef CONFIG_SANDBOX #ifdef CONFIG_SANDBOX
setup_ram_buf, setup_ram_buf,
...@@ -970,6 +976,7 @@ static init_fnc_t init_sequence_f[] = { ...@@ -970,6 +976,7 @@ static init_fnc_t init_sequence_f[] = {
setup_machine, setup_machine,
reserve_global_data, reserve_global_data,
reserve_fdt, reserve_fdt,
reserve_arch,
reserve_stacks, reserve_stacks,
setup_dram_config, setup_dram_config,
show_dram_config, show_dram_config,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment