Skip to content

Commit 1597213

Browse files
committed
arch: riscv: stacktrace: undo the fp/sp alignment check in zephyrproject-rtos#76045
The change of alignment check in zephyrproject-rtos#76045 could be wrong and isn't unnecessary to fix the stack traces output, undo it for now. Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
1 parent eaf92a1 commit 1597213

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/riscv/core/stacktrace.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,7 @@ void arch_stack_walk(stack_trace_callback_fn callback_fn, void *cookie,
227227
static bool in_fatal_stack_bound(uintptr_t addr, const struct k_thread *const thread,
228228
const struct arch_esf *esf)
229229
{
230-
const uintptr_t align =
231-
COND_CODE_1(CONFIG_FRAME_POINTER, (ARCH_STACK_PTR_ALIGN), (sizeof(uintptr_t)));
232-
233-
if (!IS_ALIGNED(addr, align)) {
230+
if (!IS_ALIGNED(addr, sizeof(uintptr_t))) {
234231
return false;
235232
}
236233

0 commit comments

Comments
 (0)