Use map_sysmem() to convert from address to pointer, so that sandbox can
print FIT information without crashing.

Signed-off-by: Simon Glass <s...@chromium.org>
---
 common/image-fit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/image-fit.c b/common/image-fit.c
index ef21112..9f3ece2 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -373,7 +373,7 @@ void fit_image_print(const void *fit, int image_noffset, 
const char *p)
        if (ret)
                printf("unavailable\n");
        else
-               printf("0x%08lx\n", (ulong)data);
+               printf("0x%08lx\n", (ulong)map_to_sysmem((char *)data));
 #endif
 
        printf("%s  Data Size:    ", p);
-- 
1.7.7.3

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to