Don't use XALIGNED_STACK on static.

pull/575/head
David Garske 2025-06-16 09:48:50 -07:00 committed by Daniele Lacamera
parent dd03cf19c4
commit dea8b4e347
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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) {