summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/percpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-14 11:47:47 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 10:00:54 +0100
commitcef56750eb5ce8a2aa31ff4e3bc038bc656a0d96 (patch)
tree7623daadd38c0aa9bd84dd314f1b4e2113f8a247 /cpukit/score/include/rtems/score/percpu.h
parentOptional POSIX Threads initialization (diff)
downloadrtems-cef56750eb5ce8a2aa31ff4e3bc038bc656a0d96.tar.bz2
Optional POSIX Cleanup initialization
Update #2408.
Diffstat (limited to 'cpukit/score/include/rtems/score/percpu.h')
-rw-r--r--cpukit/score/include/rtems/score/percpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h
index 806c290b7c..4ad530f7d7 100644
--- a/cpukit/score/include/rtems/score/percpu.h
+++ b/cpukit/score/include/rtems/score/percpu.h
@@ -516,6 +516,13 @@ static inline uint32_t _Per_CPU_Get_index( const Per_CPU_Control *cpu )
return ( uint32_t ) ( per_cpu_envelope - &_Per_CPU_Information[ 0 ] );
}
+static inline struct _Thread_Control *_Per_CPU_Get_executing(
+ const Per_CPU_Control *cpu
+)
+{
+ return cpu->executing;
+}
+
static inline bool _Per_CPU_Is_processor_started(
const Per_CPU_Control *cpu
)