From 10fd4aacc7c2788ebc6a696174ae0a98c4a83dd3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 2 Aug 2013 13:54:08 +0200 Subject: score/cpu: Add CPU_Per_CPU_control Add CPU port specific per-CPU control. --- cpukit/score/include/rtems/score/percpu.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cpukit/score/include/rtems/score/percpu.h') 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 /* -- cgit v1.2.3