diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-21 13:02:03 +1000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-09-08 12:50:48 +0200 |
commit | ea87616d6c44d998affef3d3b9fdfc49d14b8150 (patch) | |
tree | 7a44ca5bbe846c46c9709699492d4fd9145ad7e0 /include/hw | |
parent | c3b4f589d86ae4a6b9f6c1e0587998bc525833da (diff) | |
download | qemu-ea87616d6c44d998affef3d3b9fdfc49d14b8150.zip qemu-ea87616d6c44d998affef3d3b9fdfc49d14b8150.tar.gz qemu-ea87616d6c44d998affef3d3b9fdfc49d14b8150.tar.bz2 |
loader: Add load_image_size() to replace load_image()
A subsequent patch to ppc/spapr needs to load the RTAS blob into
qemu memory rather than target memory (so it can later be copied
into the right spot at machine reset time).
I would use load_image() but it is marked deprecated because it
doesn't take a buffer size as argument, so let's add load_image_size()
that does.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[aik: fixed errors from checkpatch.pl]
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/loader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/loader.h b/include/hw/loader.h index 00c9117..9190387 100644 --- a/include/hw/loader.h +++ b/include/hw/loader.h @@ -13,6 +13,7 @@ */ int get_image_size(const char *filename); int load_image(const char *filename, uint8_t *addr); /* deprecated */ +ssize_t load_image_size(const char *filename, void *addr, size_t size); int load_image_targphys(const char *filename, hwaddr, uint64_t max_sz); int load_image_gzipped(const char *filename, hwaddr addr, uint64_t max_sz); |