From: Gabriel Somlo Date: Sun, 14 Jun 2020 01:31:12 +0000 (-0400) Subject: bios/boot: addresses should use 'unsigned long' X-Git-Tag: 24jan2021_ls180~176^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d5ca3f92656d56cf238855cc51892dbf85339fd;p=litex.git bios/boot: addresses should use 'unsigned long' --- diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index 47426b62..1582c7b8 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -415,7 +415,7 @@ static unsigned int check_image_in_flash(unsigned int base_address) } #if defined(MAIN_RAM_BASE) && defined(FLASH_BOOT_ADDRESS) -static int copy_image_from_flash_to_ram(unsigned int flash_address, unsigned int ram_address) +static int copy_image_from_flash_to_ram(unsigned int flash_address, unsigned long ram_address) { uint32_t length; uint32_t offset; @@ -474,7 +474,7 @@ void flashboot(void) #if defined(CSR_SPISDCARD_BASE) || defined(CSR_SDCORE_BASE) -static int copy_file_from_sdcard_to_ram(const char * filename, unsigned int ram_address) +static int copy_file_from_sdcard_to_ram(const char * filename, unsigned long ram_address) { FRESULT fr; FATFS fs;