mirror of https://github.com/wolfSSL/wolfBoot.git
Don't use XALIGNED_STACK on static.
parent
dd03cf19c4
commit
dea8b4e347
|
|
@ -1419,7 +1419,7 @@ static int copy_flash_buffered(uintptr_t src_addr, uintptr_t dst_addr,
|
|||
|
||||
#ifndef BUFFER_DECLARED
|
||||
#define BUFFER_DECLARED
|
||||
static uint8_t buffer[FLASHBUFFER_SIZE] XALIGNED_STACK(4);
|
||||
static uint8_t buffer[FLASHBUFFER_SIZE] XALIGNED(4);
|
||||
#endif
|
||||
|
||||
#ifdef WOLFBOOT_FLASH_MULTI_SECTOR_ERASE
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ static int RAMFUNCTION wolfBoot_copy_sector(struct wolfBoot_image *src,
|
|||
if (PART_IS_EXT(src)) {
|
||||
#ifndef BUFFER_DECLARED
|
||||
#define BUFFER_DECLARED
|
||||
static uint8_t buffer[FLASHBUFFER_SIZE] XALIGNED_STACK(4);
|
||||
static uint8_t buffer[FLASHBUFFER_SIZE] XALIGNED(4);
|
||||
#endif
|
||||
wb_flash_erase(dst, dst_sector_offset, WOLFBOOT_SECTOR_SIZE);
|
||||
while (pos < WOLFBOOT_SECTOR_SIZE) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue