From: Heinrich Schuchardt Date: Sun, 18 Nov 2018 16:58:51 +0000 (+0100) Subject: fdt_support: fdt reservations on the sandbox X-Git-Tag: v2019.01-rc1~9^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ad0a799e55a55b23ebad26dbad5fcd0dbedecf6;p=platform%2Fkernel%2Fu-boot.git fdt_support: fdt reservations on the sandbox On the sandbox the memory addresses in the device tree refer to the virtual address space of the sandbox. This implies that the memory reservations for the fdt also have to be converted to this address space. Signed-off-by: Heinrich Schuchardt Signed-off-by: Alexander Graf --- diff --git a/common/fdt_support.c b/common/fdt_support.c index e6daa67..3440e42 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -7,6 +7,7 @@ */ #include +#include #include #include #include @@ -633,7 +634,7 @@ int fdt_shrink_to_minimum(void *blob, uint extrasize) fdt_set_totalsize(blob, actualsize); /* Add the new reservation */ - ret = fdt_add_mem_rsv(blob, (uintptr_t)blob, actualsize); + ret = fdt_add_mem_rsv(blob, map_to_sysmem(blob), actualsize); if (ret < 0) return ret;