mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 07:38:45 +08:00
bsps: Use rtems_task_self()
This commit is contained in:
@@ -66,7 +66,7 @@ void _print_full_context(uint32_t spsr)
|
||||
uint32_t prev_sp,prev_lr,cpsr,arm_switch_reg;
|
||||
int i;
|
||||
|
||||
printk("active thread thread 0x%08x\n", _Thread_Executing->Object.id);
|
||||
printk("active thread thread 0x%08x\n", rtems_task_self());
|
||||
|
||||
mode=_print_full_context_mode2txt[spsr&0x1f];
|
||||
if(!mode) mode="unknown";
|
||||
|
||||
@@ -59,7 +59,7 @@ void _print_full_context(uint32_t spsr)
|
||||
uint32_t prev_sp,prev_lr,cpsr,arm_switch_reg;
|
||||
int i, j;
|
||||
|
||||
printk("active thread thread 0x%08x\n", _Thread_Executing->Object.id);
|
||||
printk("active thread thread 0x%08x\n", rtems_task_self());
|
||||
|
||||
mode=_print_full_context_mode2txt[(spsr&0x1f)-0x10];
|
||||
if(!mode) mode="unknown";
|
||||
|
||||
@@ -143,7 +143,7 @@ Thread_Control *rtems_gdb_index_to_stub_id(
|
||||
/* Get id of the thread stopped by exception */
|
||||
int rtems_gdb_stub_get_current_thread(void)
|
||||
{
|
||||
return rtems_gdb_stub_id_to_index( _Thread_Executing->Object.id );
|
||||
return rtems_gdb_stub_id_to_index( rtems_task_self() );
|
||||
}
|
||||
|
||||
/* Get id of the next thread after athread, if argument <= 0 find the
|
||||
|
||||
Reference in New Issue
Block a user