summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/percpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-29 10:41:01 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-07-30 08:06:00 +0200
commit48274706a752efcee061f628a85964fda895ff57 (patch)
tree9093a935756d485f3692dcfce749e071ed9723e1 /cpukit/score/include/rtems/score/percpu.h
parenttftpDriver: close() false error (diff)
downloadrtems-48274706a752efcee061f628a85964fda895ff57.tar.bz2
score: Rename struct Thread_Control
Add a leading underscore to the structure name to allow forward declarations in standard header files provided by Newlib and GCC.
Diffstat (limited to 'cpukit/score/include/rtems/score/percpu.h')
-rw-r--r--cpukit/score/include/rtems/score/percpu.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h
index 9ce68ef7b1..f1dad90ccc 100644
--- a/cpukit/score/include/rtems/score/percpu.h
+++ b/cpukit/score/include/rtems/score/percpu.h
@@ -51,7 +51,7 @@ extern "C" {
#if !defined( ASM )
-struct Thread_Control;
+struct _Thread_Control;
struct Scheduler_Context;
@@ -273,7 +273,7 @@ typedef struct Per_CPU_Control {
* configurations use _Thread_Is_executing_on_a_processor() to figure out if
* a thread context is executing on a processor.
*/
- struct Thread_Control *executing;
+ struct _Thread_Control *executing;
/**
* @brief This is the heir thread for this processor.
@@ -287,7 +287,7 @@ typedef struct Per_CPU_Control {
*
* @see _Thread_Get_heir_and_make_it_executing().
*/
- struct Thread_Control *heir;
+ struct _Thread_Control *heir;
/**
* @brief This is set to true when this processor needs to run the
@@ -609,9 +609,9 @@ bool _Per_CPU_State_wait_for_non_initial_state(
*
* @return The thread control block of the executing thread.
*/
-RTEMS_INLINE_ROUTINE struct Thread_Control *_Thread_Get_executing( void )
+RTEMS_INLINE_ROUTINE struct _Thread_Control *_Thread_Get_executing( void )
{
- struct Thread_Control *executing;
+ struct _Thread_Control *executing;
#if defined( RTEMS_SMP )
ISR_Level level;