Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bootloaders/eboot/eboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down
Binary file modified bootloaders/eboot/eboot.elf
Binary file not shown.