diff --git a/bootloaders/eboot/eboot.c b/bootloaders/eboot/eboot.c index c3d0c278f7..1a7aca7731 100644 --- a/bootloaders/eboot/eboot.c +++ b/bootloaders/eboot/eboot.c @@ -138,7 +138,9 @@ int uzlib_flash_read_cb(struct uzlib_uncomp *m) } unsigned char gzip_dict[32768]; -uint8_t buffer2[FLASH_SECTOR_SIZE]; // no room for this on the stack +uint8_t buffer[FLASH_SECTOR_SIZE]; // off the stack, like the others: copy_raw()'s +uint8_t buffer2[FLASH_SECTOR_SIZE]; // frame stays small, and so does its code +struct uzlib_uncomp m_uncomp; int copy_raw(const uint32_t src_addr, const uint32_t dst_addr, @@ -152,11 +154,9 @@ int copy_raw(const uint32_t src_addr, } const uint32_t buffer_size = FLASH_SECTOR_SIZE; - uint8_t buffer[buffer_size]; int32_t left = ((size+buffer_size-1) & ~(buffer_size-1)); uint32_t saddr = src_addr; uint32_t daddr = dst_addr; - struct uzlib_uncomp m_uncomp; bool gzip = false; // Check if we are uncompressing a GZIP upload or not diff --git a/bootloaders/eboot/eboot.elf b/bootloaders/eboot/eboot.elf index 0e679ff46c..4c843d5afd 100755 Binary files a/bootloaders/eboot/eboot.elf and b/bootloaders/eboot/eboot.elf differ