From de099d82225040060d2ffeaa3f68bf596b607f9a Mon Sep 17 00:00:00 2001 From: Shell Date: Thu, 21 Mar 2024 20:23:36 +0800 Subject: [PATCH] [libcpu/rv64] fixup for parameter passing on backtrace (#8655) Signed-off-by: Shell --- libcpu/risc-v/virt64/backtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcpu/risc-v/virt64/backtrace.c b/libcpu/risc-v/virt64/backtrace.c index 47c8956936..47eba3fb94 100644 --- a/libcpu/risc-v/virt64/backtrace.c +++ b/libcpu/risc-v/virt64/backtrace.c @@ -76,7 +76,7 @@ rt_err_t rt_hw_backtrace_frame_unwind(rt_thread_t thread, struct rt_hw_backtrace { void *lwp = thread->lwp; void *this_lwp = lwp_self(); - if (this_lwp == lwp && rt_hw_mmu_v2p(lwp, fp) != ARCH_MAP_FAILED) + if (this_lwp == lwp && rt_hw_mmu_v2p(((rt_lwp_t)lwp)->aspace, fp) != ARCH_MAP_FAILED) { rc = _bt_kaddr(fp, frame); }