Skip to content

Commit dea8b4e

Browse files
dgarskedanielinux
authored andcommitted
Don't use XALIGNED_STACK on static.
1 parent dd03cf1 commit dea8b4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/image.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ static int copy_flash_buffered(uintptr_t src_addr, uintptr_t dst_addr,
14191419

14201420
#ifndef BUFFER_DECLARED
14211421
#define BUFFER_DECLARED
1422-
static uint8_t buffer[FLASHBUFFER_SIZE] XALIGNED_STACK(4);
1422+
static uint8_t buffer[FLASHBUFFER_SIZE] XALIGNED(4);
14231423
#endif
14241424

14251425
#ifdef WOLFBOOT_FLASH_MULTI_SECTOR_ERASE

src/update_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static int RAMFUNCTION wolfBoot_copy_sector(struct wolfBoot_image *src,
166166
if (PART_IS_EXT(src)) {
167167
#ifndef BUFFER_DECLARED
168168
#define BUFFER_DECLARED
169-
static uint8_t buffer[FLASHBUFFER_SIZE] XALIGNED_STACK(4);
169+
static uint8_t buffer[FLASHBUFFER_SIZE] XALIGNED(4);
170170
#endif
171171
wb_flash_erase(dst, dst_sector_offset, WOLFBOOT_SECTOR_SIZE);
172172
while (pos < WOLFBOOT_SECTOR_SIZE) {

0 commit comments

Comments
 (0)