diff options
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/allwinner_tina/libcpu/trap.c | 6 | ||||
| -rw-r--r-- | bsp/bluetrum/ab32vg1-ab-prougen/board/board.c | 2 | ||||
| -rw-r--r-- | bsp/dm365/platform/trap.c | 6 | ||||
| -rw-r--r-- | bsp/raspberry-pico/libcpu/cpuport.c | 4 | ||||
| -rw-r--r-- | bsp/simulator/drivers/module_win32.c | 8 | ||||
| -rw-r--r-- | bsp/taihu/applications/application.c | 8 | ||||
| -rw-r--r-- | bsp/w60x/drivers/board.c | 2 |
7 files changed, 18 insertions, 18 deletions
diff --git a/bsp/allwinner_tina/libcpu/trap.c b/bsp/allwinner_tina/libcpu/trap.c index 2017f33759..69fdc7c5f5 100644 --- a/bsp/allwinner_tina/libcpu/trap.c +++ b/bsp/allwinner_tina/libcpu/trap.c @@ -87,7 +87,7 @@ void rt_hw_trap_udef(struct rt_hw_register *regs) rt_hw_show_register(regs); rt_kprintf("undefined instruction\n"); - rt_kprintf("thread - %s stack:\n", rt_current_thread->name); + rt_kprintf("thread - %s stack:\n", rt_current_thread->parent.name); #if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); @@ -139,7 +139,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_NAME_MAX, rt_current_thread->name); + rt_kprintf("thread - %s stack:\n", RT_NAME_MAX, rt_current_thread->parent.name); #if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); @@ -167,7 +167,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_NAME_MAX, rt_current_thread->name); + rt_kprintf("thread - %s stack:\n", RT_NAME_MAX, rt_current_thread->parent.name); #if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c b/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c index 7d7a1dcd5b..3b886ccda0 100644 --- a/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c +++ b/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c @@ -281,7 +281,7 @@ void exception_isr(void) #if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) rt_console_set_device(RT_NULL); - rt_kprintf(stack_info, rt_thread_self()->sp, rt_thread_self()->name); + rt_kprintf(stack_info, rt_thread_self()->sp, rt_thread_self()->parent.name); #endif while (1); diff --git a/bsp/dm365/platform/trap.c b/bsp/dm365/platform/trap.c index 68b834b9d8..b57198c0d6 100644 --- a/bsp/dm365/platform/trap.c +++ b/bsp/dm365/platform/trap.c @@ -54,7 +54,7 @@ void rt_hw_trap_udef(struct rt_hw_register *regs) rt_hw_show_register(regs); rt_kprintf("undefined instruction\n"); - rt_kprintf("thread - %s stack:\n", rt_current_thread->name); + rt_kprintf("thread - %s stack:\n", rt_current_thread->parent.name); #if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); @@ -92,7 +92,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); #if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); @@ -128,7 +128,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); #if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); diff --git a/bsp/raspberry-pico/libcpu/cpuport.c b/bsp/raspberry-pico/libcpu/cpuport.c index 6e0da147f6..93cc35189a 100644 --- a/bsp/raspberry-pico/libcpu/cpuport.c +++ b/bsp/raspberry-pico/libcpu/cpuport.c @@ -253,9 +253,9 @@ void rt_hw_hard_fault_exception(struct exception_stack_frame *contex) #ifdef RT_USING_SMP rt_thread_t rt_current_thread = rt_thread_self(); - rt_kprintf("hard fault on cpu : %d on thread: %s\n", rt_current_thread->oncpu, rt_current_thread->name); + rt_kprintf("hard fault on cpu : %d on thread: %s\n", rt_current_thread->oncpu, rt_current_thread->parent.name); #else - rt_kprintf("hard fault on thread: %s\n", rt_current_thread->name); + rt_kprintf("hard fault on thread: %s\n", rt_current_thread->parent.name); #endif #if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); diff --git a/bsp/simulator/drivers/module_win32.c b/bsp/simulator/drivers/module_win32.c index 0f07576964..590aad39bd 100644 --- a/bsp/simulator/drivers/module_win32.c +++ b/bsp/simulator/drivers/module_win32.c @@ -143,7 +143,7 @@ rt_module_t rt_module_self(void) return RT_NULL; /* return current module */ - return (rt_module_t)tid->module_id; + return (rt_module_t)tid->parent.module_id; } RTM_EXPORT(rt_module_self); @@ -319,7 +319,7 @@ rt_module_t rt_module_open(const char *path) module->module_entry)); /* set module id */ - module->module_thread->module_id = (void *)module; + module->module_thread->parent.module_id = (void *)module; module->parent.flag = RT_MODULE_FLAG_WITHENTRY; /* startup module thread */ @@ -520,11 +520,11 @@ rt_module_t rt_module_exec_cmd(const char *path, const char* cmd_line, int line_ 2048, RT_THREAD_PRIORITY_MAX - 2, 10); /* set module id */ - module->module_thread->module_id = (void *)module; + module->module_thread->parent.module_id = (void *)module; module->parent.flag = RT_MODULE_FLAG_WITHENTRY; /* startup module thread */ - rt_thread_startup(module->module_thread); + rt_thread_startup(module->parent.module_thread); } else { diff --git a/bsp/taihu/applications/application.c b/bsp/taihu/applications/application.c index a6c1c93502..aa2f2429ad 100644 --- a/bsp/taihu/applications/application.c +++ b/bsp/taihu/applications/application.c @@ -26,9 +26,9 @@ static void thread1_entry(void* parameter) while (1) { rt_sem_release(&sem2); - rt_kprintf("thread1..: %s\n", rt_thread_self()->name); + rt_kprintf("thread1..: %s\n", rt_thread_self()->parent.name); rt_sem_take(&sem1, RT_WAITING_FOREVER); - rt_kprintf("get semaphore: %s!\n", rt_thread_self()->name); + rt_kprintf("thread1..: %s\n", rt_thread_self()->parent.name); } } @@ -37,7 +37,7 @@ static void thread2_entry(void* parameter) while (1) { rt_sem_take(&sem2, RT_WAITING_FOREVER); - rt_kprintf("thread2--->: %s\n", rt_thread_self()->name); + rt_kprintf("thread2--->: %s\n", rt_thread_self()->parent.name); rt_sem_release(&sem1); } } @@ -73,7 +73,7 @@ static void thread1_entry(void* parameter) rt_uint32_t count = 0; while (1) { - rt_kprintf("%s: count = %d\n", rt_thread_self()->name, count ++); + rt_kprintf("%s: count = %d\n", rt_thread_self()->parent.name, count ++); rt_thread_delay(10); } diff --git a/bsp/w60x/drivers/board.c b/bsp/w60x/drivers/board.c index 02a7b2586a..6ba8996da2 100644 --- a/bsp/w60x/drivers/board.c +++ b/bsp/w60x/drivers/board.c @@ -143,7 +143,7 @@ static void _thread_inited_hook(rt_thread_t thread) if ((stk_start + stack_size) >= TASK_STACK_USING_MEM_UPPER_RANGE) { rt_kprintf("thread[%s] stack only between 0x%08x and 0x%08x, please use rt_create_thread()!!\n", - thread->name, TASK_STACK_USING_MEM_LOWER_RANGE, TASK_STACK_USING_MEM_UPPER_RANGE); + thread->parent.name, TASK_STACK_USING_MEM_LOWER_RANGE, TASK_STACK_USING_MEM_UPPER_RANGE); } RT_ASSERT((stk_start + stack_size) < TASK_STACK_USING_MEM_UPPER_RANGE); } |
