summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-08-08 03:54:29 -0600
committerAlexander Graf <agraf@suse.de>2018-09-23 21:55:28 +0200
commitbaf70c02107a60603234a6871087368dc7bc3764 (patch)
tree698d6f83ece22dcc2a981c525577dd290ee825f8 /cmd
parentefe79a7c0de0196f6be12c58e1a1d1744b6af0cf (diff)
downloadu-boot-baf70c02107a60603234a6871087368dc7bc3764.tar.gz
u-boot-baf70c02107a60603234a6871087368dc7bc3764.tar.bz2
u-boot-baf70c02107a60603234a6871087368dc7bc3764.zip
efi: Relocate FDT to 127MB instead of 128MB
Sandbox only has 128MB of memory so we cannot relocate the device tree up to start at 128MB. Use 127MB instead, which should be safe. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bootefi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index b60c151fb4..c479748159 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -158,8 +158,8 @@ static void *copy_fdt(void *fdt)
fdt_size = ALIGN(fdt_size + EFI_PAGE_SIZE - 1, EFI_PAGE_SIZE);
fdt_pages = fdt_size >> EFI_PAGE_SHIFT;
- /* Safe fdt location is at 128MB */
- new_fdt_addr = fdt_ram_start + (128 * 1024 * 1024) + fdt_size;
+ /* Safe fdt location is at 127MB */
+ new_fdt_addr = fdt_ram_start + (127 * 1024 * 1024) + fdt_size;
if (efi_allocate_pages(EFI_ALLOCATE_MAX_ADDRESS,
EFI_RUNTIME_SERVICES_DATA, fdt_pages,
&new_fdt_addr) != EFI_SUCCESS) {