arch: riscv: stacktrace: undo the fp/sp alignment check in #76045

The change of alignment check in #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>
This commit is contained in:
Yong Cong Sin 2024-08-14 14:58:44 +08:00 committed by Anas Nashif
commit ed8dd0fa63

View file

@ -227,10 +227,7 @@ void arch_stack_walk(stack_trace_callback_fn callback_fn, void *cookie,
static bool in_fatal_stack_bound(uintptr_t addr, const struct k_thread *const thread,
const struct arch_esf *esf)
{
const uintptr_t align =
COND_CODE_1(CONFIG_FRAME_POINTER, (ARCH_STACK_PTR_ALIGN), (sizeof(uintptr_t)));
if (!IS_ALIGNED(addr, align)) {
if (!IS_ALIGNED(addr, sizeof(uintptr_t))) {
return false;
}