From 458bd343e24cda7169c75f079705979891c9abc1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 5 Nov 1999 16:44:02 +0000 Subject: This is another pass at making sure that nothing outside the BSP unnecessarily uses any variables defined by the BSP. On this sweep, use of BSP_Configuration and Cpu_table was eliminated. A significant part of this modification was the addition of macros to access fields in the RTEMS configuration structures. This is necessary to strengthen the division between the BSP independent parts of RTEMS and the BSPs themselves. This started after comments and analysis by Ralf Corsepius . --- c/src/exec/score/cpu/i960/rtems/score/cpu.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'c/src/exec/score/cpu/i960/rtems/score') diff --git a/c/src/exec/score/cpu/i960/rtems/score/cpu.h b/c/src/exec/score/cpu/i960/rtems/score/cpu.h index 14083d9860..45a7fb85d6 100644 --- a/c/src/exec/score/cpu/i960/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/i960/rtems/score/cpu.h @@ -172,6 +172,18 @@ typedef struct { i960_PRCB *Prcb; } rtems_cpu_table; +/* + * Macros to access required entires in the CPU Table are in + * the file rtems/system.h. + */ + +/* + * Macros to access i960 specific additions to the CPU Table + */ + +#define rtems_cpu_configuration_get_prcb() \ + (_CPU_Table.Prcb) + /* variables */ SCORE_EXTERN void *_CPU_Interrupt_stack_low; -- cgit v1.2.3