diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-02 13:54:08 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-09 21:58:39 +0200 |
commit | 10fd4aacc7c2788ebc6a696174ae0a98c4a83dd3 (patch) | |
tree | 0fe6d3372886bf42a019366939928fa55398dba9 /cpukit/score/include/rtems/score | |
parent | bsp/pc386: Provide local outb() for elink driver (diff) | |
download | rtems-10fd4aacc7c2788ebc6a696174ae0a98c4a83dd3.tar.bz2 |
score/cpu: Add CPU_Per_CPU_control
Add CPU port specific per-CPU control.
Diffstat (limited to 'cpukit/score/include/rtems/score')
-rw-r--r-- | cpukit/score/include/rtems/score/percpu.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h index 14eed5a57f..e6713bf502 100644 --- a/cpukit/score/include/rtems/score/percpu.h +++ b/cpukit/score/include/rtems/score/percpu.h @@ -141,6 +141,11 @@ typedef enum { * This structure is used to hold per core state information. */ typedef struct { + /** + * @brief CPU port specific control. + */ + CPU_Per_CPU_control cpu_per_cpu; + #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) || \ (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE) /** @@ -310,7 +315,7 @@ void _Per_CPU_Wait_for_state( * we need to have places in the per CPU table to hold them. */ #define PER_CPU_INTERRUPT_STACK_LOW \ - 0 + CPU_PER_CPU_CONTROL_SIZE #define PER_CPU_INTERRUPT_STACK_HIGH \ PER_CPU_INTERRUPT_STACK_LOW + CPU_SIZEOF_POINTER #define PER_CPU_END_STACK \ @@ -322,7 +327,7 @@ void _Per_CPU_Wait_for_state( (SYM(_Per_CPU_Information) + PER_CPU_INTERRUPT_STACK_HIGH) #else #define PER_CPU_END_STACK \ - 0 + CPU_PER_CPU_CONTROL_SIZE #endif /* |