summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems/score/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index 18a6770788..3cad329157 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -343,8 +343,20 @@ static inline ppc_context *ppc_get_context( const Context_Control *context )
ppc_get_context(_context)->gpr1
#ifdef RTEMS_SMP
- #define _CPU_Context_Get_is_executing( _context ) \
- ppc_get_context(_context)->is_executing
+ static inline bool _CPU_Context_Get_is_executing(
+ const Context_Control *context
+ )
+ {
+ return ppc_get_context(context)->is_executing;
+ }
+
+ static inline void _CPU_Context_Set_is_executing(
+ Context_Control *context,
+ bool is_executing
+ )
+ {
+ ppc_get_context(context)->is_executing = is_executing;
+ }
#endif
#endif /* ASM */