diff options
author | danh-arm <dan.handley@arm.com> | 2014-05-06 17:57:34 +0100 |
---|---|---|
committer | danh-arm <dan.handley@arm.com> | 2014-05-06 17:57:34 +0100 |
commit | e404d7f44a190b82332bb96daffa0c6239732218 (patch) | |
tree | 3a9c8494e30f1d7475dbc69edef172a37f036594 /common/bl_common.c | |
parent | 408c37682a0233c8c4fa88700b603f0b09d6361f (diff) | |
parent | 625de1d4f04b30383354bee944d0a7ca3dba1e67 (diff) |
Merge pull request #49 from danh-arm/dh/remove-non-const-data
Remove variables from .data section
Diffstat (limited to 'common/bl_common.c')
-rw-r--r-- | common/bl_common.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/bl_common.c b/common/bl_common.c index af2b7b74..5361c383 100644 --- a/common/bl_common.c +++ b/common/bl_common.c @@ -251,9 +251,9 @@ static void dump_load_info(unsigned long image_load_addr, /* Generic function to return the size of an image */ unsigned long image_size(const char *image_name) { - io_dev_handle dev_handle; - io_handle image_handle; - void *image_spec; + uintptr_t dev_handle; + uintptr_t image_handle; + uintptr_t image_spec; size_t image_size = 0; int io_result = IO_FAIL; @@ -303,9 +303,9 @@ unsigned long load_image(meminfo_t *mem_layout, unsigned int load_type, unsigned long fixed_addr) { - io_dev_handle dev_handle; - io_handle image_handle; - void *image_spec; + uintptr_t dev_handle; + uintptr_t image_handle; + uintptr_t image_spec; unsigned long temp_image_base = 0; unsigned long image_base = 0; long offset = 0; @@ -504,7 +504,7 @@ unsigned long load_image(meminfo_t *mem_layout, /* We have enough space so load the image now */ /* TODO: Consider whether to try to recover/retry a partially successful read */ - io_result = io_read(image_handle, (void *)image_base, image_size, &bytes_read); + io_result = io_read(image_handle, image_base, image_size, &bytes_read); if ((io_result != IO_SUCCESS) || (bytes_read < image_size)) { WARN("Failed to load '%s' file (%i)\n", image_name, io_result); goto fail; |