diff options
Diffstat (limited to 'cpukit/score/cpu/sparc/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/sparc/rtems/score/cpu.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h index 50da44cf4b..7bcdbd9b37 100644 --- a/cpukit/score/cpu/sparc/rtems/score/cpu.h +++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h @@ -473,6 +473,10 @@ typedef struct { * SPARC CPU models at high interrupt rates. */ uint32_t isr_dispatch_disable; + +#if defined(RTEMS_SMP) + volatile bool is_executing; +#endif } Context_Control; /** @@ -483,6 +487,11 @@ typedef struct { #define _CPU_Context_Get_SP( _context ) \ (_context)->o6_sp +#ifdef RTEMS_SMP + #define _CPU_Context_Get_is_executing( _context ) \ + (_context)->is_executing +#endif + #endif /* ASM */ /* @@ -538,6 +547,10 @@ typedef struct { /** This macro defines an offset into the context for use in assembly. */ #define ISR_DISPATCH_DISABLE_STACK_OFFSET 0x54 +#if defined(RTEMS_SMP) + #define SPARC_CONTEXT_CONTROL_IS_EXECUTING_OFFSET 0x58 +#endif + /** This defines the size of the context area for use in assembly. */ #define CONTEXT_CONTROL_SIZE 0x68 |