From 93f3cb30e48d5de341bda09fa806120e2bc3f3ad Mon Sep 17 00:00:00 2001 From: Shicheng Chu <1468559561@qq.com> Date: Tue, 4 Apr 2023 21:06:27 +0800 Subject: [kernel] 将rt_thread结构体改为显式继承rt_object (#7131) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libcpu/aarch64/common/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcpu/aarch64') diff --git a/libcpu/aarch64/common/trap.c b/libcpu/aarch64/common/trap.c index 59378d08e4..dd5468daf1 100644 --- a/libcpu/aarch64/common/trap.c +++ b/libcpu/aarch64/common/trap.c @@ -289,7 +289,7 @@ void rt_hw_trap_exception(struct rt_hw_exp_stack *regs) #endif process_exception(esr, regs->pc); rt_hw_show_register(regs); - rt_kprintf("current: %s\n", rt_thread_self()->name); + rt_kprintf("current: %s\n", rt_thread_self()->parent.name); #ifdef RT_USING_LWP check_user_fault(regs, 0, "user fault"); #endif @@ -304,7 +304,7 @@ void rt_hw_trap_serror(struct rt_hw_exp_stack *regs) { rt_kprintf("SError\n"); rt_hw_show_register(regs); - rt_kprintf("current: %s\n", rt_thread_self()->name); + rt_kprintf("current: %s\n", rt_thread_self()->parent.name); #ifdef RT_USING_FINSH list_thread(); #endif -- cgit v1.3.1