[rtems commit] sparc: Provide _CPU_Get_thread_executing()
Sebastian Huber
sebh at rtems.org
Mon Nov 7 06:45:50 UTC 2016
Module: rtems
Branch: master
Commit: 7790d95f0a8025a82657cfb5dba1bfb0c8c5fe27
Changeset: http://git.rtems.org/rtems/commit/?id=7790d95f0a8025a82657cfb5dba1bfb0c8c5fe27
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Nov 4 13:29:00 2016 +0100
sparc: Provide _CPU_Get_thread_executing()
---
cpukit/score/cpu/sparc/rtems/score/cpuimpl.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cpukit/score/cpu/sparc/rtems/score/cpuimpl.h b/cpukit/score/cpu/sparc/rtems/score/cpuimpl.h
index 6b8b601..5373db1 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
More information about the vc
mailing list