diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-29 18:51:49 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-29 18:51:49 +0000 |
commit | 263ab4bcb987f5ab607d0911200abe13b2c0ea5c (patch) | |
tree | 9b318360ba1da34b24a23b426cf7051803e084b1 /cpukit/score/include/rtems/score/percpu.h | |
parent | 2010-06-29 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-263ab4bcb987f5ab607d0911200abe13b2c0ea5c.tar.bz2 |
2010-06-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac, score/include/rtems/score/percpu.h: Add
__RTEMS_SIZEOF_VOID_P__ to cpuopts.h so percpu.h has this information
available during build and after installation.
Diffstat (limited to 'cpukit/score/include/rtems/score/percpu.h')
-rw-r--r-- | cpukit/score/include/rtems/score/percpu.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h index 09f82ad663..3d7fb18f0a 100644 --- a/cpukit/score/include/rtems/score/percpu.h +++ b/cpukit/score/include/rtems/score/percpu.h @@ -97,8 +97,8 @@ typedef struct { * we need to have places in the per cpu table to hold them. */ #define PER_CPU_INTERRUPT_STACK_LOW 0 - #define PER_CPU_INTERRUPT_STACK_HIGH (1 * SIZEOF_VOID_P) - #define PER_CPU_END_STACK (2 * SIZEOF_VOID_P) + #define PER_CPU_INTERRUPT_STACK_HIGH (1 * __RTEMS_SIZEOF_VOID_P__) + #define PER_CPU_END_STACK (2 * __RTEMS_SIZEOF_VOID_P__) #else /* * Otherwise, there are no interrupt stack addresses in the per CPU table. @@ -109,15 +109,21 @@ typedef struct { /* * These are the offsets of the required elements in the per CPU table. */ -#define PER_CPU_ISR_NEST_LEVEL PER_CPU_END_STACK + 0 -#define PER_CPU_EXECUTING PER_CPU_END_STACK + (1 * SIZEOF_VOID_P) -#define PER_CPU_HEIR PER_CPU_END_STACK + (2 * SIZEOF_VOID_P) -#define PER_CPU_IDLE PER_CPU_END_STACK + (3 * SIZEOF_VOID_P) -#define PER_CPU_DISPATCH_NEEDED PER_CPU_END_STACK + (4 * SIZEOF_VOID_P) +#define PER_CPU_ISR_NEST_LEVEL \ + PER_CPU_END_STACK + 0 +#define PER_CPU_EXECUTING \ + PER_CPU_END_STACK + (1 * __RTEMS_SIZEOF_VOID_P__) +#define PER_CPU_HEIR \ + PER_CPU_END_STACK + (2 * __RTEMS_SIZEOF_VOID_P__) +#define PER_CPU_IDLE \ + PER_CPU_END_STACK + (3 * __RTEMS_SIZEOF_VOID_P__) +#define PER_CPU_DISPATCH_NEEDED \ + PER_CPU_END_STACK + (4 * __RTEMS_SIZEOF_VOID_P__) + #define ISR_NEST_LEVEL \ - (SYM(_Per_CPU_Information) + PER_CPU_ISR_NEST_LEVEL) + (SYM(_Per_CPU_Information) + PER_CPU_ISR_NEST_LEVEL) #define DISPATCH_NEEDED \ - (SYM(_Per_CPU_Information) + PER_CPU_DISPATCH_NEEDED) + (SYM(_Per_CPU_Information) + PER_CPU_DISPATCH_NEEDED) /* * Do not define these offsets if they are not in the table. |