diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-29 12:37:35 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-08-01 11:58:23 +0200 |
commit | 74b869bae74cb749ed4feef54f6d2630aed2a828 (patch) | |
tree | 9fc6e3a25f6d3f8c665b45e599ccc4e667074c43 /lib | |
parent | 4f0c4be1c34f934ad33edb0f29f7f249e5de4b40 (diff) | |
download | u-boot-74b869bae74cb749ed4feef54f6d2630aed2a828.tar.gz u-boot-74b869bae74cb749ed4feef54f6d2630aed2a828.tar.bz2 u-boot-74b869bae74cb749ed4feef54f6d2630aed2a828.zip |
efi_loader: use CONFIG_STACK_SIZE in the UEFI sub-system
The Kconfig symbol CONFIG_STACK_SIZE is used both by ARM and Microblaze
with the same meaning. Move it to menu 'General setup' so that we can use
it for all architectures.
Use the value of CONFIG_STACK_SIZE instead of a hard coded 16 MiB value for
reserving memory in the UEFI sub-system.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c index 44b8a2e09f..7be756e370 100644 --- a/lib/efi_loader/efi_memory.c +++ b/lib/efi_loader/efi_memory.c @@ -762,7 +762,7 @@ static void add_u_boot_and_runtime(void) unsigned long runtime_start, runtime_end, runtime_pages; unsigned long runtime_mask = EFI_PAGE_MASK; unsigned long uboot_start, uboot_pages; - unsigned long uboot_stack_size = 16 * 1024 * 1024; + unsigned long uboot_stack_size = CONFIG_STACK_SIZE; /* Add U-Boot */ uboot_start = ((uintptr_t)map_sysmem(gd->start_addr_sp, 0) - |