[libcpu/rv64] fixup for parameter passing on backtrace (#8655)

Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
Shell 2024-03-21 20:23:36 +08:00 committed by GitHub
parent 1b07378261
commit ea63dd6c57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 *lwp = thread->lwp;
void *this_lwp = lwp_self(); 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); rc = _bt_kaddr(fp, frame);
} }