summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-16 17:18:18 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-16 19:09:25 +0200
commit3ccaf3c9f35de10ecb42af1c14e2c25d177654aa (patch)
tree37c43e9f8db73a9be42a49f43efe9d51f6389b52
parent85d2e4b58f41df1c0941ee4002afbc62a783b55b (diff)
downloadrtems-3ccaf3c9f35de10ecb42af1c14e2c25d177654aa.tar.bz2
bsps: Use rtems_task_self()
-rw-r--r--c/src/lib/libbsp/arm/shared/abort/abort.c2
-rw-r--r--c/src/lib/libbsp/arm/shared/abort/simple_abort.c2
-rw-r--r--c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/arm/shared/abort/abort.c b/c/src/lib/libbsp/arm/shared/abort/abort.c
index 148064f28d..ae18e99105 100644
--- a/c/src/lib/libbsp/arm/shared/abort/abort.c
+++ b/c/src/lib/libbsp/arm/shared/abort/abort.c
@@ -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";
diff --git a/c/src/lib/libbsp/arm/shared/abort/simple_abort.c b/c/src/lib/libbsp/arm/shared/abort/simple_abort.c
index c02e3d62e1..039d23b84e 100644
--- a/c/src/lib/libbsp/arm/shared/abort/simple_abort.c
+++ b/c/src/lib/libbsp/arm/shared/abort/simple_abort.c
@@ -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";
diff --git a/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c b/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c
index a92698bcf0..ee18ea352e 100644
--- a/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c
+++ b/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c
@@ -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