bsps: Use rtems_task_self()

This commit is contained in:
Sebastian Huber
2013-07-16 19:09:25 +02:00
parent 85d2e4b58f
commit 3ccaf3c9f3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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