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:
parent
989fdadfe2
commit
ed8dd0fa63
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue