From 2efa632c45634fc459fe5b66c436ce1ca0068f37 Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Mon, 12 Nov 2018 16:16:09 +0800 Subject: [PATCH] common: bootm: add lmb reserve for fdt this avoids fdt being overriden when ramdisk relocation if fdt is too close to lmb allocable high memory region. fixes: 5af94f7887ab4057e9feb37243f843b811a5c0cf (android: get fdt by suitable ways) Change-Id: Iadd5854269d0832b0c0455c8423b9d4172768ce3 Signed-off-by: Joseph Chen --- common/bootm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/bootm.c b/common/bootm.c index 97bfd23226..2863bcaa67 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -252,6 +252,7 @@ int bootm_find_images(int flag, int argc, char * const argv[]) return 1; } set_working_fdt_addr((ulong)images.ft_addr); + lmb_reserve(&images.lmb, (ulong)images.ft_addr, (ulong)images.ft_len); #endif #if IMAGE_ENABLE_FIT