2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>

* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
	Table to Configuration Table. Eliminate CPU Table from all ports.
	Delete references to CPU Table in all forms.
This commit is contained in:
Joel Sherrill
2007-12-04 22:19:10 +00:00
parent 2906c7a5b4
commit ee29de05bc
39 changed files with 78 additions and 222 deletions

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -30,13 +30,10 @@
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of ISR disptaching routine (unused)
*
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -379,15 +379,6 @@ extern void rtems_exception_init_mngt();
typedef CPU_Exception_frame CPU_Interrupt_frame;
/*
* The following table contains the information required to configure
* the XXX processor specific parameters.
*/
typedef struct {
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/*
* This variable is optional. It is used on CPUs on which it is difficult
* to generate an "uninitialized" FP context. It is filled in by
@@ -706,7 +697,6 @@ void _CPU_Context_Initialize(
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -21,7 +21,6 @@
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*
* NO_CPU Specific Information:
@@ -31,7 +30,6 @@
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -418,20 +418,6 @@ typedef struct {
uint32_t special_interrupt_register;
} CPU_Interrupt_frame;
/*
* The following table contains the information required to configure
* the XXX processor specific parameters.
*
* AVR Specific Information:
*
* XXX document implementation including references if appropriate
*/
typedef struct {
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/*
* This variable is optional. It is used on CPUs on which it is difficult
* to generate an "uninitialized" FP context. It is filled in by
@@ -934,7 +920,6 @@ uint32_t _CPU_ISR_Get_level( void );
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -22,7 +22,6 @@
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*
* NO_CPU Specific Information:
@@ -32,7 +31,6 @@
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -549,24 +549,6 @@ typedef struct {
/*uint32_t special_interrupt_register;*/
} CPU_Interrupt_frame;
/**
* The following table contains the information required to configure
* the XXX processor specific parameters.
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
typedef struct {
/** This field specifies the size of the interrupt stack. If less than or
* equal to the minimum stack size, then the interrupt stack will be of
* minimum stack size.
*/
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/**
* This variable is optional. It is used on CPUs on which it is difficult
* to generate an "uninitialized" FP context. It is filled in by
@@ -1162,7 +1144,6 @@ void _CPU_Context_Initialize(
* XXX document implementation including references if appropriate
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -22,7 +22,6 @@
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*
* C4x Specific Information:
@@ -30,7 +29,6 @@
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -519,19 +519,6 @@ typedef struct {
} CPU_Interrupt_frame;
/*
* The following table contains the information required to configure
* the C4x processor specific parameters.
*
* C4x Specific Information:
*
* XXXanswer
*/
typedef struct {
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/*
* Macros to access C4X specific additions to the CPU Table
*
@@ -1076,7 +1063,6 @@ void _CPU_Context_Initialize(
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -20,13 +20,11 @@
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -396,23 +396,6 @@ typedef struct {
uint32_t special_interrupt_register;
} CPU_Interrupt_frame;
/*
* The following table contains the information required to configure
* the XXX processor specific parameters.
*
* NOTE: The interrupt_stack_size field is required if
* CPU_ALLOCATE_INTERRUPT_STACK is defined as TRUE.
*
* H8300 Specific Information:
*
* XXX
*/
typedef struct {
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/*
* This variable is optional. It is used on CPUs on which it is difficult
* to generate an "uninitialized" FP context. It is filled in by
@@ -993,7 +976,6 @@ uint32_t _CPU_ISR_Get_level( void );
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -26,13 +26,11 @@
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -178,18 +178,6 @@ typedef enum {
} Intel_symbolic_exception_name;
/*
* The following table contains the information required to configure
* the i386 specific parameters.
*/
typedef struct {
void (*pretasking_hook)( void );
void (*predriver_hook)( void );
void (*postdriver_hook)( void );
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/*
* context size area for floating point
*
@@ -399,7 +387,6 @@ uint32_t _CPU_ISR_Get_level( void );
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -19,14 +19,12 @@
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - entry pointer to thread dispatcher
*
* OUTPUT PARAMETERS: NONE
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -185,15 +185,6 @@ typedef struct {
uint32_t a0, a1, a2, a3, a4, a5, a6, a7;
} CPU_Exception_frame;
/*
* The following table contains the information required to configure
* the m68k specific parameters.
*/
typedef struct {
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/* variables */
SCORE_EXTERN void *_CPU_Interrupt_stack_low;
@@ -562,7 +553,6 @@ void _CPU_Thread_Idle_body( void );
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -71,13 +71,9 @@ ESF_PTR_TYPE __exceptionStackFrame = 0;
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -591,16 +591,6 @@ typedef struct
} CPU_Interrupt_frame;
/*
* The following table contains the information required to configure
* the mips processor specific parameters.
*/
typedef struct {
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/*
* This variable is optional. It is used on CPUs on which it is difficult
* to generate an "uninitialized" FP context. It is filled in by
@@ -1057,7 +1047,6 @@ extern void mips_break( int error );
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -20,7 +20,6 @@
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*
* NO_CPU Specific Information:
@@ -30,7 +29,6 @@
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -541,30 +541,6 @@ typedef struct {
uint32_t ipending;
} CPU_Exception_frame;
/**
* The following table contains the information required to configure
* the XXX processor specific parameters.
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
typedef struct {
/** This element points to the BSP's pretasking hook. */
void (*pretasking_hook)( void );
/** This element points to the BSP's predriver hook. */
void (*predriver_hook)( void );
/** This element points to the BSP's postdriver hook. */
void (*postdriver_hook)( void );
/** This field specifies the size of the interrupt stack. If less than or
* equal to the minimum stack size, then the interrupt stack will be of
* minimum stack size.
*/
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/**
* This variable is optional. It is used on CPUs on which it is difficult
* to generate an "uninitialized" FP context. It is filled in by
@@ -1161,7 +1137,6 @@ uint32_t _CPU_ISR_Get_level( void );
* XXX document implementation including references if appropriate
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -21,17 +21,13 @@
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*
* NO_CPU Specific Information:
*
* XXX document implementation including references if appropriate
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -486,24 +486,6 @@ typedef struct {
uint32_t special_interrupt_register;
} CPU_Interrupt_frame;
/**
* The following table contains the information required to configure
* the XXX processor specific parameters.
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
typedef struct {
/** This field specifies the size of the interrupt stack. If less than or
* equal to the minimum stack size, then the interrupt stack will be of
* minimum stack size.
*/
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/**
* This variable is optional. It is used on CPUs on which it is difficult
* to generate an "uninitialized" FP context. It is filled in by
@@ -1076,7 +1058,6 @@ uint32_t _CPU_ISR_Get_level( void );
* XXX document implementation including references if appropriate
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -40,13 +40,11 @@ extern proc_ptr _Hardware_isr_Table[];
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -385,17 +385,6 @@ typedef struct {
typedef struct {
} CPU_Interrupt_frame;
/*
* The following table contains the information required to configure
* the SH processor specific parameters.
*/
typedef struct {
uint32_t interrupt_stack_size;
/* end of fields required on all CPUs */
} rtems_cpu_table;
/*
* This variable is optional. It is used on CPUs on which it is difficult
* to generate an "uninitialized" FP context. It is filled in by
@@ -821,7 +810,6 @@ extern uint8_t _bit_set_table[];
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -39,7 +39,6 @@ const CPU_Trap_table_entry _CPU_Trap_slot_template = {
* This routine performs processor dependent initialization.
*
* Input Parameters:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*
* Output Parameters: NONE
@@ -49,7 +48,6 @@ const CPU_Trap_table_entry _CPU_Trap_slot_template = {
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{

View File

@@ -498,17 +498,6 @@ typedef struct {
#define CONTEXT_CONTROL_INTERRUPT_FRAME_SIZE CPU_MINIMUM_STACK_FRAME_SIZE + 0x50
#ifndef ASM
/*
* The following table contains the information required to configure
* the processor specific parameters.
*/
typedef struct {
uint32_t interrupt_stack_size;
/* end of fields required on all CPUs */
} rtems_cpu_table;
/*
* This variable is contains the initialize context for the FP unit.
* It is filled in by _CPU_Initialize and copied into the task's FP
@@ -881,7 +870,6 @@ void _CPU_Context_Initialize(
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
Table to Configuration Table. Eliminate CPU Table from all ports.
Delete references to CPU Table in all forms.
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to

View File

@@ -272,13 +272,11 @@ uint32_t _CPU_ISR_Get_level( void )
* This routine performs processor dependent initialization.
*
* INPUT PARAMETERS:
* cpu_table - CPU table to initialize
* thread_dispatch - address of disptaching routine
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch) /* ignored on this CPU */
)
{
@@ -313,8 +311,6 @@ void _CPU_Initialize(
/* XXX: FP context initialization support */
_CPU_Table = *cpu_table;
_CPU_Sync_io_Init();
_CPU_Context_From_CPU_Init();

View File

@@ -491,16 +491,6 @@ typedef struct {
typedef struct {
} CPU_Interrupt_frame;
/*
* The following table contains the information required to configure
* the UNIX Simulator specific parameters.
*/
typedef struct {
uint32_t interrupt_stack_size;
} rtems_cpu_table;
/*
* This variable is optional. It is used on CPUs on which it is difficult
* to generate an "uninitialized" FP context. It is filled in by
@@ -874,7 +864,6 @@ extern void _CPU_Context_Initialize(
*/
void _CPU_Initialize(
rtems_cpu_table *cpu_table,
void (*thread_dispatch)
);