diff options
| author | Shicheng Chu <[email protected]> | 2023-04-04 21:06:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-04 09:06:27 -0400 |
| commit | 93f3cb30e48d5de341bda09fa806120e2bc3f3ad (patch) | |
| tree | b23b2343674fecbc3fdfbcd49220488da21472ed /libcpu/unicore32 | |
| parent | 8a52e65013d1abb7cfc032409000533000ccd0c2 (diff) | |
[kernel] 将rt_thread结构体改为显式继承rt_object (#7131)
Diffstat (limited to 'libcpu/unicore32')
| -rw-r--r-- | libcpu/unicore32/sep6200/trap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcpu/unicore32/sep6200/trap.c b/libcpu/unicore32/sep6200/trap.c index f2f342cfbe..a6a8e166dc 100644 --- a/libcpu/unicore32/sep6200/trap.c +++ b/libcpu/unicore32/sep6200/trap.c @@ -53,7 +53,7 @@ void rt_hw_trap_extn(struct rt_hw_register *regs) rt_hw_show_register(regs); rt_kprintf("extn instruction\n"); - rt_kprintf("thread - %s stack:\n", rt_current_thread->name); + rt_kprintf("thread - %s stack:\n", rt_current_thread->parent.name); rt_hw_backtrace((rt_uint32_t *)regs->fp, (rt_uint32_t)rt_current_thread->entry); rt_hw_cpu_shutdown(); @@ -89,7 +89,7 @@ void rt_hw_trap_pabt(struct rt_hw_register *regs) rt_hw_show_register(regs); rt_kprintf("prefetch abort\n"); - rt_kprintf("thread - %s stack:\n", rt_current_thread->name); + rt_kprintf("thread - %s stack:\n", rt_current_thread->parent.name); rt_hw_backtrace((rt_uint32_t *)regs->fp, (rt_uint32_t)rt_current_thread->entry); rt_hw_cpu_shutdown(); @@ -108,7 +108,7 @@ void rt_hw_trap_dabt(struct rt_hw_register *regs) rt_hw_show_register(regs); rt_kprintf("data abort\n"); - rt_kprintf("thread - %s stack:\n", rt_current_thread->name); + rt_kprintf("thread - %s stack:\n", rt_current_thread->parent.name); rt_hw_backtrace((rt_uint32_t *)regs->fp, (rt_uint32_t)rt_current_thread->entry); rt_hw_cpu_shutdown(); |
