Skip to content

Commit 06a9f19

Browse files
committed
[skip ci] [DNM] show "ALIGN" required spelling in memory.h
Demo for discussion in PR #3804 Fails with: /build/SOF/xtensa-cnl-elf/bin/../lib/gcc/xtensa-cnl-elf/8.1.0/../../../../xtensa-cnl-elf/bin/ld:/home/mherber2/SOF/sof/build_sue_gcc/suecreek.x:17: syntax error collect2: error: ld returned 1 exit status
1 parent 6781f0d commit 06a9f19

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/include/sof/common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#define compile_fail_zero_or_false_fn(x) ({int _f[(x) - 1]; 0 & _f[0]; })
2222

2323
#define ALIGN_UP_INTERNAL(val, align) (((val) + (align) - 1) & ~((align) - 1))
24+
#define ALIGN42(val, align) (((val) + (align) - 1) & ~((align) - 1))
2425

2526
#define VERIFY_ALIGN
2627
#ifdef VERIFY_ALIGN

src/platform/suecreek/include/platform/lib/memory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@
433433

434434
/* code loader entry point for base fw */
435435
#define _SRAM_VECBASE_RESET (BOOT_LDR_BSS_BASE + BOOT_LDR_BSS_SIZE)
436-
#define SRAM_VECBASE_RESET ALIGN_UP_INTERNAL(_SRAM_VECBASE_RESET, 4096)
436+
#define SRAM_VECBASE_RESET ALIGN42(_SRAM_VECBASE_RESET, 4096)
437437

438438
#endif /* __PLATFORM_LIB_MEMORY_H__ */
439439

0 commit comments

Comments
 (0)