summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sparc/rtems/score/cpuimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-04 13:29:00 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-07 07:39:42 +0100
commit7790d95f0a8025a82657cfb5dba1bfb0c8c5fe27 (patch)
tree4207541ed5517fa42bf5d8c84ffe0da2a8432246 /cpukit/score/cpu/sparc/rtems/score/cpuimpl.h
parentscore: Add optional _CPU_Get_thread_executing() (diff)
downloadrtems-7790d95f0a8025a82657cfb5dba1bfb0c8c5fe27.tar.bz2
sparc: Provide _CPU_Get_thread_executing()
Diffstat (limited to '')
-rw-r--r--cpukit/score/cpu/sparc/rtems/score/cpuimpl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/cpu/sparc/rtems/score/cpuimpl.h b/cpukit/score/cpu/sparc/rtems/score/cpuimpl.h
index 6b8b601cb0..5373db190c 100644
--- a/cpukit/score/cpu/sparc/rtems/score/cpuimpl.h
+++ b/cpukit/score/cpu/sparc/rtems/score/cpuimpl.h
@@ -5,6 +5,8 @@
*/
/*
+ * Copyright (c) 2016 embedded brains GmbH.
+ *
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
@@ -21,6 +23,8 @@
extern "C" {
#endif
+#define _CPU_Get_thread_executing() ( _SPARC_Per_CPU_current->executing )
+
#ifdef __cplusplus
}
#endif