bios/boot/copy_image_from_flash_to_ram: add missing init_progression_bar.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 10 Jun 2020 07:59:38 +0000 (09:59 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 10 Jun 2020 07:59:38 +0000 (09:59 +0200)
litex/soc/software/bios/boot.c

index 634a1eb93d42896600d7f9482064d11d5951f3e7..5ccb24bcf0dddab706a4007244dcc28a0985e482 100644 (file)
@@ -452,6 +452,7 @@ static int copy_image_from_flash_to_ram(unsigned int flash_address, unsigned int
        if(length > 0) {
                printf("Copying %d bytes from 0x%08x to 0x%08x...\n", length, flash_address, ram_address);
                offset = 0;
+               init_progression_bar(length);
                while (length > 0) {
                        uint32_t chunk_length;
                        chunk_length = min(length, 0x8000); /* 32KB chunks */