diff options
author | Ben Dooks | 2023-06-06 09:23:28 +0100 |
---|---|---|
committer | Heiko Schocher | 2023-06-06 10:37:25 +0200 |
commit | b46cec41664f35c689385c70c76d274a059c7251 (patch) | |
tree | fcc975cdb0063a87e9e0c53b83857e829286ca60 /include/ubifs_uboot.h | |
parent | 26659d426548d1c395ef878c3b820e53a6e3b346 (diff) |
ubifs: allow loading to above 4GiB
The ubifsload command is truncating any address above 4GiB as it casts
this address to an u32, instead of using an unsigned long which most of
the other load commands do. Change this to an unsigned long to allow
loading into high memory for boards which use these areas.
Fixes the following error:
=> ubifsload 0x2100000000 /boot/Image.lzma
Loading file '/boot/Image.lzma' to addr 0x00000000...
Unhandled exception: Store/AMO access fault
Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Diffstat (limited to 'include/ubifs_uboot.h')
-rw-r--r-- | include/ubifs_uboot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ubifs_uboot.h b/include/ubifs_uboot.h index b025779d59f..db8a29e9bbd 100644 --- a/include/ubifs_uboot.h +++ b/include/ubifs_uboot.h @@ -21,7 +21,7 @@ int ubifs_init(void); int uboot_ubifs_mount(char *vol_name); void uboot_ubifs_umount(void); int ubifs_is_mounted(void); -int ubifs_load(char *filename, u32 addr, u32 size); +int ubifs_load(char *filename, unsigned long addr, u32 size); int ubifs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info); int ubifs_ls(const char *dir_name); |