diff options
author | Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> | 2023-04-17 10:11:54 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-27 17:01:14 -0400 |
commit | 4b6d114d6d30dafd18c27fb00608b2f6038ac5ff (patch) | |
tree | 61a67d59b99e8280ec4647829a7f0c20241e3568 | |
parent | 9e115ace358d9ed79844b27b06b3a0e8b23d49da (diff) | |
download | u-boot-4b6d114d6d30dafd18c27fb00608b2f6038ac5ff.tar.gz u-boot-4b6d114d6d30dafd18c27fb00608b2f6038ac5ff.tar.bz2 u-boot-4b6d114d6d30dafd18c27fb00608b2f6038ac5ff.zip |
sandbox64: fix: return unsigned long in readq()
make readq return unsigned long
readq should return 64-bit data
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | arch/sandbox/cpu/cpu.c | 2 | ||||
-rw-r--r-- | arch/sandbox/include/asm/io.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c index 636d3545b9..248d17a85c 100644 --- a/arch/sandbox/cpu/cpu.c +++ b/arch/sandbox/cpu/cpu.c @@ -230,7 +230,7 @@ phys_addr_t map_to_sysmem(const void *ptr) return mentry->tag; } -unsigned int sandbox_read(const void *addr, enum sandboxio_size_t size) +unsigned long sandbox_read(const void *addr, enum sandboxio_size_t size) { struct sandbox_state *state = state_get_current(); diff --git a/arch/sandbox/include/asm/io.h b/arch/sandbox/include/asm/io.h index ad6c29a4e2..31ab7289b4 100644 --- a/arch/sandbox/include/asm/io.h +++ b/arch/sandbox/include/asm/io.h @@ -45,7 +45,7 @@ static inline void unmap_sysmem(const void *vaddr) /* Map from a pointer to our RAM buffer */ phys_addr_t map_to_sysmem(const void *ptr); -unsigned int sandbox_read(const void *addr, enum sandboxio_size_t size); +unsigned long sandbox_read(const void *addr, enum sandboxio_size_t size); void sandbox_write(void *addr, unsigned int val, enum sandboxio_size_t size); #define readb(addr) sandbox_read((const void *)addr, SB_SIZE_8) |