aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-11-18 17:58:51 +0100
committerAlexander Graf <agraf@suse.de>2018-12-02 21:59:37 +0100
commit9ad0a799e55a55b23ebad26dbad5fcd0dbedecf6 (patch)
treea6dcf794fd8ace3408be56d5cf7780e6527174ad /common
parentf980c99985dda829f4300bfec32695dfe4731849 (diff)
downloadu-boot-9ad0a799e55a55b23ebad26dbad5fcd0dbedecf6.zip
u-boot-9ad0a799e55a55b23ebad26dbad5fcd0dbedecf6.tar.gz
u-boot-9ad0a799e55a55b23ebad26dbad5fcd0dbedecf6.tar.bz2
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 <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'common')
-rw-r--r--common/fdt_support.c3
1 files changed, 2 insertions, 1 deletions
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 <common.h>
+#include <mapmem.h>
#include <stdio_dev.h>
#include <linux/ctype.h>
#include <linux/types.h>
@@ -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;