summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-05-07 06:12:03 +0000
committerTom Rini <trini@ti.com>2013-05-14 15:37:25 -0400
commit35e7b0f1790b5e620041348aec04c1e51d9d649b (patch)
treed621db0c21da91f9bef25dbfadd4497638cfa8b3 /include/image.h
parentd8b75360eed3a117c0fc516e38a5ccc31df459eb (diff)
downloadu-boot-imx-35e7b0f1790b5e620041348aec04c1e51d9d649b.zip
u-boot-imx-35e7b0f1790b5e620041348aec04c1e51d9d649b.tar.gz
u-boot-imx-35e7b0f1790b5e620041348aec04c1e51d9d649b.tar.bz2
sandbox: image: Add support for booting images in sandbox
Much of the image code uses addresses as ulongs and pointers interchangeably, casting between the two forms as needed. This doesn't work with sandbox, which has a U-Boot RAM buffer which is separate from the host machine's memory. Adjust the cost so that translating from a U-Boot address to a pointer uses map_sysmem(). This allows bootm to work correctly on sandbox. Note that there are no exhaustive tests for this code on sandbox, so it is possible that some dark corners remain. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de> (v1)
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index aa93d9e..df020ff 100644
--- a/include/image.h
+++ b/include/image.h
@@ -352,7 +352,7 @@ void genimg_print_time(time_t timestamp);
#define IMAGE_FORMAT_LEGACY 0x01 /* legacy image_header based format */
#define IMAGE_FORMAT_FIT 0x02 /* new, libfdt based format */
-int genimg_get_format(void *img_addr);
+int genimg_get_format(const void *img_addr);
int genimg_has_config(bootm_headers_t *images);
ulong genimg_get_image(ulong img_addr);