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

* include/bsp.h, startup/bspstart.c: 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:22:26 +00:00
parent 7321ff0df2
commit d34d8692b6
111 changed files with 258 additions and 533 deletions

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -27,7 +27,6 @@ extern "C" {
#include <rtems/clockdrv.h> #include <rtems/clockdrv.h>
#include <mc9328mxl.h> #include <mc9328mxl.h>
/* What is the input clock freq in hertz? */ /* What is the input clock freq in hertz? */
#define BSP_OSC_FREQ 16000000 /* 16 MHz oscillator */ #define BSP_OSC_FREQ 16000000 /* 16 MHz oscillator */
#define BSP_XTAL_FREQ 32768 /* 32.768 KHz crystal */ #define BSP_XTAL_FREQ 32768 /* 32.768 KHz crystal */
@@ -35,9 +34,6 @@ extern "C" {
/* How many serial ports? */ /* How many serial ports? */
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
/* How big should the interrupt stack be? */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024)
extern rtems_configuration_table BSP_Configuration; extern rtems_configuration_table BSP_Configuration;
int get_perclk1_freq(void); int get_perclk1_freq(void);

View File

@@ -29,7 +29,6 @@ unsigned long free_mem_end;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname = "RTEMS"; char *rtems_progname = "RTEMS";
extern void rtems_irq_mngt_init(void); extern void rtems_irq_mngt_init(void);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -40,9 +40,6 @@ static inline int32_t BSP_get_baud(void) {return 38400;}
/* How many serial ports? */ /* How many serial ports? */
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
/* How big should the interrupt stack be? */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024)
extern rtems_configuration_table BSP_Configuration; extern rtems_configuration_table BSP_Configuration;
#define ST_PIMR_PIV 33 /* 33 ticks of the 32.768Khz clock ~= 1msec */ #define ST_PIMR_PIV 33 /* 33 ticks of the 32.768Khz clock ~= 1msec */

View File

@@ -30,7 +30,6 @@ unsigned long free_mem_start;
unsigned long free_mem_end; unsigned long free_mem_end;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname = "RTEMS"; char *rtems_progname = "RTEMS";
/* Function prototypes */ /* Function prototypes */

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -36,7 +36,6 @@ int cs8900_driver_attach (struct rtems_bsdnet_ifconfig *config,
int attaching); int attaching);
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024)
extern rtems_configuration_table BSP_Configuration; extern rtems_configuration_table BSP_Configuration;

View File

@@ -44,7 +44,6 @@ unsigned long free_mem_end;
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table; /* CPU configuration table. */
char *rtems_progname; /* Program name - from main(). */ char *rtems_progname; /* Program name - from main(). */
/*************************************************************/ /*************************************************************/

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, include/bsp.h, startup/bspstart.c: Moved most of the * Makefile.am, include/bsp.h, startup/bspstart.c: Moved most of the

View File

@@ -61,9 +61,6 @@ void gp32_setPalette( unsigned char pos, uint16_t color);
/* How many serial ports? */ /* How many serial ports? */
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
/* How big should the interrupt stack be? */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024)
/* /*
* This BSP provides its own IDLE task to override the RTEMS one. * This BSP provides its own IDLE task to override the RTEMS one.
* So we prototype it and define the constant confdefs.h expects * So we prototype it and define the constant confdefs.h expects

View File

@@ -37,7 +37,6 @@ unsigned long free_mem_end;
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table; /* CPU configuration table. */
char *rtems_progname = "RTEMS"; /* Program name - from main(). */ char *rtems_progname = "RTEMS"; /* Program name - from main(). */
/*-------------------------------------------------------------------------+ /*-------------------------------------------------------------------------+

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, include/bsp.h, startup/bspstart.c: Moved most of the * Makefile.am, include/bsp.h, startup/bspstart.c: Moved most of the

View File

@@ -126,7 +126,6 @@ int cs8900_driver_attach (struct rtems_bsdnet_ifconfig *config,
int attaching); int attaching);
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
#define CONFIGURE_INTERRUPT_STACK_MEMORY (1 * 1024)
extern rtems_configuration_table BSP_Configuration; extern rtems_configuration_table BSP_Configuration;

View File

@@ -49,7 +49,6 @@ unsigned long free_mem_end;
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table; /* CPU configuration table. */
char *rtems_progname; /* Program name - from main(). */ char *rtems_progname; /* Program name - from main(). */
/*************************************************************/ /*************************************************************/

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -79,15 +79,6 @@ extern "C" {
#define FIFOLENGTH 0x100 #define FIFOLENGTH 0x100
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* /*
* Simple spin delay in microsecond units for device drivers. * Simple spin delay in microsecond units for device drivers.
* This is very dependent on the clock speed of the target. * This is very dependent on the clock speed of the target.

View File

@@ -34,8 +34,6 @@ extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
@@ -159,12 +157,6 @@ void bsp_start( void )
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
/*
* initialize the CPU table for this BSP
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
int i=0; int i=0;
for (i=5;i<16;i++) { for (i=5;i<16;i++) {
set_vector((rtems_isr_entry)null_isr, i, 1); set_vector((rtems_isr_entry)null_isr, i, 1);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -66,8 +66,6 @@ void bsp_spurious_initialize( void );
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */ extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
extern rtems_cpu_table Cpu_table; /* owned by BSP */
extern uint32_t bsp_isr_level; extern uint32_t bsp_isr_level;
#endif /* ASM */ #endif /* ASM */

View File

@@ -28,8 +28,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
/* /*
* Use the shared implementations of the following routines * Use the shared implementations of the following routines
*/ */
@@ -73,14 +71,8 @@ extern void C4X_BSP_output_char(char c);
void bsp_start( void ) void bsp_start( void )
{ {
extern void *_WorkspaceBase; extern void *_WorkspaceBase;
extern uint32_t _WorkspaceMax; extern uint32_t _WorkspaceMax;
/*
* This should be enough interrupt stack.
*/
Cpu_table.interrupt_stack_size = 0;
BSP_Configuration.work_space_start = (void *)&_WorkspaceBase; BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
/* XXX check to see if satisfying small memory model */ /* XXX check to see if satisfying small memory model */

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -28,15 +28,6 @@ extern "C" {
#include <libcpu/cpu.h> #include <libcpu/cpu.h>
#include <bsp/irq.h> #include <bsp/irq.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (8 * 1024)
/* /*
* Simple spin delay in microsecond units for device drivers. * Simple spin delay in microsecond units for device drivers.
* This is very dependent on the clock speed of the target. * This is very dependent on the clock speed of the target.

View File

@@ -35,8 +35,6 @@ void bsp_clean_up(void);
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
/* /*
* Tells us where to put the workspace in case remote debugger is present. * Tells us where to put the workspace in case remote debugger is present.
*/ */
@@ -95,13 +93,6 @@ void bsp_start( void )
{ {
void rtems_irq_mngt_init(); void rtems_irq_mngt_init();
/*
* we do not use the pretasking_hook.
*/
/* changed Sept 14 STACK_MINIMUM_SIZE */
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
BSP_Configuration.work_space_start = (void *) BSP_Configuration.work_space_start = (void *)
RAM_END - BSP_Configuration.work_space_size; RAM_END - BSP_Configuration.work_space_size;
#ifdef DEBUG #ifdef DEBUG

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -62,12 +62,6 @@ extern "C" {
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
#if STACK_MINIMUM_SIZE < (4 * 1024)
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
#else
#define CONFIGURE_INTERRUPT_STACK_MEMORY STACK_MINIMUM_SIZE
#endif
/* /*
* Network driver configuration * Network driver configuration
*/ */

View File

@@ -76,7 +76,6 @@ uint32_t rtemsFreeMemStart;
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table; /* CPU configuration table. */
char *rtems_progname; /* Program name - from main(). */ char *rtems_progname; /* Program name - from main(). */
/*-------------------------------------------------------------------------+ /*-------------------------------------------------------------------------+
@@ -180,8 +179,6 @@ void bsp_start_default( void )
/* set the value of start of free memory. */ /* set the value of start of free memory. */
rtemsFreeMemStart = (uint32_t)&_end + _stack_size; rtemsFreeMemStart = (uint32_t)&_end + _stack_size;
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
/* Place RTEMS workspace at beginning of free memory. */ /* Place RTEMS workspace at beginning of free memory. */
if (rtemsFreeMemStart & (CPU_ALIGNMENT - 1)) /* not aligned => align it */ if (rtemsFreeMemStart & (CPU_ALIGNMENT - 1)) /* not aligned => align it */

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -28,15 +28,6 @@ extern "C" {
#include <libcpu/cpu.h> #include <libcpu/cpu.h>
#include <bsp/irq.h> #include <bsp/irq.h>
/*
* confdefs.h overrides for this BSP:
* - termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (8 * 1024)
/* /*
* Network driver configuration * Network driver configuration
*/ */

View File

@@ -34,8 +34,6 @@ void bsp_clean_up(void);
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
/* /*
* Tells us where to put the workspace in case remote debugger is present. * Tells us where to put the workspace in case remote debugger is present.
*/ */
@@ -93,8 +91,6 @@ void bsp_start( void )
{ {
void rtems_irq_mngt_init(); void rtems_irq_mngt_init();
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
BSP_Configuration.work_space_start = (void *) BSP_Configuration.work_space_start = (void *)
RAM_END - BSP_Configuration.work_space_size; RAM_END - BSP_Configuration.work_space_size;

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -125,7 +125,6 @@ extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config);
*/ */
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* System frequency */ /* System frequency */
#define BSP_SYSTEM_FREQUENCY (66 * 1000 * 1000) #define BSP_SYSTEM_FREQUENCY (66 * 1000 * 1000)

View File

@@ -40,17 +40,12 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
extern unsigned int _RamSize; extern unsigned int _RamSize;
char *rtems_progname; char *rtems_progname;
/* /*
* Use the shared implementations of the following routines * Use the shared implementations of the following routines
*/ */
void bsp_postdriver_hook(void); void bsp_postdriver_hook(void);
void bsp_libc_init( void *, uint32_t, int ); void bsp_libc_init( void *, uint32_t, int );
void bsp_pretasking_hook(void); /* m68k version */ void bsp_pretasking_hook(void); /* m68k version */
@@ -64,7 +59,6 @@ void bsp_start( void )
extern unsigned long _M68k_Ramsize; extern unsigned long _M68k_Ramsize;
_M68k_Ramsize = (unsigned long)&_RamSize; /* size set in linker script */ _M68k_Ramsize = (unsigned long)&_RamSize; /* size set in linker script */
/* /*
* Need to "allocate" the memory for the RTEMS Workspace and * Need to "allocate" the memory for the RTEMS Workspace and
* tell the RTEMS configuration where it is. This memory is * tell the RTEMS configuration where it is. This memory is
@@ -72,9 +66,4 @@ void bsp_start( void )
*/ */
BSP_Configuration.work_space_start = (void *)&_WorkspaceBase; BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
/*
* initialize the CPU table for this BSP
*/
Cpu_table.interrupt_stack_size = 4096;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -28,15 +28,6 @@ extern "C" {
#include <rtems/iosupp.h> #include <rtems/iosupp.h>
#include <rtems/clockdrv.h> #include <rtems/clockdrv.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* /*
* Simple spin delay in microsecond units for device drivers. * Simple spin delay in microsecond units for device drivers.
* This is very dependent on the clock speed of the target. * This is very dependent on the clock speed of the target.

View File

@@ -28,8 +28,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -71,10 +69,4 @@ void bsp_start( void )
*/ */
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
/*
* initialize the CPU table for this BSP
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -31,15 +31,6 @@ extern "C" {
#include <rtems/iosupp.h> #include <rtems/iosupp.h>
#include <rtems/clockdrv.h> #include <rtems/clockdrv.h>
/*
* confdefs.h overrides for this BSP:
* - termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* /*
* Simple spin delay in microsecond units for device drivers. * Simple spin delay in microsecond units for device drivers.
* This is very dependent on the clock speed of the target. * This is very dependent on the clock speed of the target.

View File

@@ -33,8 +33,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* Initialize whatever libc we are using /* Initialize whatever libc we are using
@@ -74,9 +72,4 @@ void bsp_start( void )
*/ */
BSP_Configuration.work_space_start = (void *)&_WorkspaceBase; BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
/*
* initialize the CPU table for this BSP
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -37,15 +37,6 @@ extern "C" {
#include <rtems/iosupp.h> #include <rtems/iosupp.h>
#include <rtems/clockdrv.h> #include <rtems/clockdrv.h>
/*
* confdefs.h overrides for this BSP:
* - termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* /*
* Network driver configuration * Network driver configuration
*/ */

View File

@@ -27,8 +27,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* Amount of RAM on this board. Dynamically set in start.S */ /* Amount of RAM on this board. Dynamically set in start.S */

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -16,15 +16,6 @@
#include <rtems/motorola/mc68230.h> #include <rtems/motorola/mc68230.h>
#include <rtems/motorola/mc68681.h> #include <rtems/motorola/mc68681.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
#define DUART_ADDR 0xb00003 /* base address of the MC68681 DUART */ #define DUART_ADDR 0xb00003 /* base address of the MC68681 DUART */
/* Constants */ /* Constants */

View File

@@ -35,8 +35,6 @@ void led_putnum();
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -91,12 +89,6 @@ void bsp_start( void )
rtems_cache_enable_instruction(); rtems_cache_enable_instruction();
rtems_cache_enable_data(); rtems_cache_enable_data();
/*
* we only use a hook to get the C library initialized.
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
/* led_putnum('e'); * for debugging purposes only */ /* led_putnum('e'); * for debugging purposes only */

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -145,7 +145,6 @@ extern "C" {
*/ */
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* System frequency */ /* System frequency */
#define BSP_SYSTEM_FREQUENCY ((unsigned int)&_SYS_CLOCK_FREQUENCY) #define BSP_SYSTEM_FREQUENCY ((unsigned int)&_SYS_CLOCK_FREQUENCY)

View File

@@ -40,8 +40,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
unsigned long _RamSize; unsigned long _RamSize;
char *rtems_progname; char *rtems_progname;
@@ -68,9 +66,4 @@ void bsp_start( void )
*/ */
BSP_Configuration.work_space_start = (void *)&_WorkspaceBase; BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
/*
* initialize the CPU table for this BSP
*/
Cpu_table.interrupt_stack_size = 4096;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Moved most of the remaining CPU Table fields to * startup/bspstart.c: Moved most of the remaining CPU Table fields to

View File

@@ -38,7 +38,6 @@ extern "C" {
#define CONSOLE_SCI #define CONSOLE_SCI
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */ /* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
/* #define CONFIGURE_INTERRUPT_STACK_MEMORY (TBD * 1024) */
/* /*
* Simple spin delay in microsecond units for device drivers. * Simple spin delay in microsecond units for device drivers.

View File

@@ -26,9 +26,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -26,15 +26,6 @@ extern "C" {
#include <rtems/console.h> #include <rtems/console.h>
#include <rtems/iosupp.h> #include <rtems/iosupp.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* /*
* Simple spin delay in microsecond units for device drivers. * Simple spin delay in microsecond units for device drivers.
* This is very dependent on the clock speed of the target. * This is very dependent on the clock speed of the target.

View File

@@ -28,9 +28,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -74,11 +71,5 @@ void bsp_start( void )
rtems_cache_enable_instruction(); rtems_cache_enable_instruction();
/*
* we only use a hook to get the C library initialized.
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Moved most of the remaining CPU Table fields to * startup/bspstart.c: Moved most of the remaining CPU Table fields to

View File

@@ -30,15 +30,6 @@ extern "C" {
#include <rtems/console.h> #include <rtems/console.h>
#include <rtems/iosupp.h> #include <rtems/iosupp.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* Constants */ /* Constants */
#define RAM_START 0x00005000 #define RAM_START 0x00005000

View File

@@ -31,9 +31,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -82,11 +79,5 @@ void bsp_start( void )
rtems_cache_enable_instruction(); rtems_cache_enable_instruction();
rtems_cache_enable_data(); rtems_cache_enable_data();
/*
* we only use a hook to get the C library initialized.
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -30,15 +30,6 @@ extern "C" {
#include <rtems/console.h> #include <rtems/console.h>
#include <rtems/iosupp.h> #include <rtems/iosupp.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* Constants */ /* Constants */
#define RAM_START 0x00007000 #define RAM_START 0x00007000

View File

@@ -31,9 +31,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -93,9 +90,12 @@ void bsp_start( void )
/* Make VME access round-robin */ /* Make VME access round-robin */
} }
node_number = #if defined(RTEMS_MULTIPROCESSING)
(uint8_t) node_number = (uint8_t)
(Configuration.User_multiprocessing_table->node - 1) & 0xF; (Configuration.User_multiprocessing_table->node - 1) & 0xF;
#else
node_number = 1;
#endif
/* Get and store node ID, first node_number = 0 */ /* Get and store node ID, first node_number = 0 */
vme_gcsr->board_identification = node_number; vme_gcsr->board_identification = node_number;
@@ -140,11 +140,5 @@ void bsp_start( void )
rtems_cache_enable_instruction(); rtems_cache_enable_instruction();
rtems_cache_enable_data(); rtems_cache_enable_data();
/*
* we only use a hook to get the C library initialized.
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -33,15 +33,6 @@ extern "C" {
#include <rtems/console.h> #include <rtems/console.h>
#include <rtems/iosupp.h> #include <rtems/iosupp.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
#include <mvme16x_hw.h> #include <mvme16x_hw.h>
/*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/

View File

@@ -35,9 +35,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -98,11 +95,5 @@ void bsp_start( void )
page_table_init(); page_table_init();
/*
* we only use a hook to get the C library initialized.
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -40,7 +40,6 @@ extern "C" {
*/ */
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 4 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 4
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
#include <mvme16x_hw.h> #include <mvme16x_hw.h>

View File

@@ -35,9 +35,6 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_extensions_table user_extension_table; rtems_extensions_table user_extension_table;
rtems_cpu_table Cpu_table;
/* /*
* Use the shared implementations of the following routines. * Use the shared implementations of the following routines.
* Look in rtems/c/src/lib/libbsp/shared/bsppost.c and * Look in rtems/c/src/lib/libbsp/shared/bsppost.c and
@@ -125,9 +122,6 @@ void bsp_start( void )
*/ */
page_table_init( &Configuration ); page_table_init( &Configuration );
/* Must match value in start.s */
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
/* /*
* If the application has not overriden the default User_extension_table, * If the application has not overriden the default User_extension_table,
* supply one with our own fatal error handler that returns control to * supply one with our own fatal error handler that returns control to

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -29,15 +29,6 @@ extern "C" {
#include <rtems/clockdrv.h> #include <rtems/clockdrv.h>
#include <rtems/m68k/m68302.h> #include <rtems/m68k/m68302.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
#ifndef VARIANT #ifndef VARIANT
#define VARIANT bare #define VARIANT bare
#endif #endif

View File

@@ -27,10 +27,7 @@
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
rtems_interrupt_level bsp_isr_level; rtems_interrupt_level bsp_isr_level;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -62,10 +59,4 @@ void bsp_start( void )
*/ */
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
/*
* initialize the CPU table for this BSP
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -29,15 +29,6 @@ extern "C" {
#include <rtems/clockdrv.h> #include <rtems/clockdrv.h>
#include <libcpu/rm5231.h> #include <libcpu/rm5231.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
extern void WriteDisplay( char * string ); extern void WriteDisplay( char * string );
/* /*

View File

@@ -28,11 +28,7 @@ uint32_t bsp_clicks_per_microsecond;
*/ */
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -103,11 +99,6 @@ void bsp_start( void )
BSP_Configuration.work_space_start = BSP_Configuration.work_space_start =
(void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x2000) & ~0x7); (void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x2000) & ~0x7);
/*
* initialize the CPU table for this BSP
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
bsp_clicks_per_microsecond = CPU_CLOCK_RATE_MHZ; bsp_clicks_per_microsecond = CPU_CLOCK_RATE_MHZ;
mips_install_isr_entries(); /* Install generic MIPS exception handler */ mips_install_isr_entries(); /* Install generic MIPS exception handler */

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Moved most of the remaining CPU Table fields to * startup/bspstart.c: Moved most of the remaining CPU Table fields to

View File

@@ -27,15 +27,6 @@ extern "C" {
#include <rtems/console.h> #include <rtems/console.h>
#include <rtems/clockdrv.h> #include <rtems/clockdrv.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* /*
* Simple spin delay in microsecond units for device drivers. * Simple spin delay in microsecond units for device drivers.
* This is very dependent on the clock speed of the target. * This is very dependent on the clock speed of the target.

View File

@@ -26,11 +26,7 @@
*/ */
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -93,10 +89,4 @@ void bsp_start( void )
*/ */
BSP_Configuration.work_space_start = (void *) 0; BSP_Configuration.work_space_start = (void *) 0;
/*
* initialize the CPU table for this BSP
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Moved most of the remaining CPU Table fields to * startup/bspstart.c: Moved most of the remaining CPU Table fields to

View File

@@ -49,15 +49,6 @@ extern "C" {
#include <bspopts.h> #include <bspopts.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024)
#ifdef ASM #ifdef ASM
/* Definition of where to store registers in alignment handler */ /* Definition of where to store registers in alignment handler */
#define ALIGN_REGS 0x0140 #define ALIGN_REGS 0x0140
@@ -77,7 +68,6 @@ extern "C" {
/* miscellaneous stuff assumed to exist */ /* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */ extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
extern rtems_cpu_table Cpu_table; /* owned by BSP */
/* /*
* Device Driver Table Entries * Device Driver Table Entries

View File

@@ -70,11 +70,7 @@
*/ */
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
void *bsp_ram_end = (void *)RAM_END; /* first addr behind avail. ram area */ void *bsp_ram_end = (void *)RAM_END; /* first addr behind avail. ram area */
@@ -183,11 +179,8 @@ void bsp_start( void )
((char *)(bsp_ram_end)) - BSP_Configuration.work_space_size; ((char *)(bsp_ram_end)) - BSP_Configuration.work_space_size;
/* /*
* initialize the CPU table for this BSP * initialize the device driver parameters
*/ */
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
bsp_clicks_per_usec = 300; bsp_clicks_per_usec = 300;
bsp_serial_per_sec = 14625000; bsp_serial_per_sec = 14625000;
bsp_serial_external_clock = 0; bsp_serial_external_clock = 0;

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Moved most of the remaining CPU Table fields to * startup/bspstart.c: Moved most of the remaining CPU Table fields to

View File

@@ -46,15 +46,6 @@ extern "C" {
#include <bspopts.h> #include <bspopts.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024)
#ifdef ASM #ifdef ASM
/* Definition of where to store registers in alignment handler */ /* Definition of where to store registers in alignment handler */
#define ALIGN_REGS 0x0140 #define ALIGN_REGS 0x0140
@@ -74,7 +65,6 @@ extern "C" {
/* miscellaneous stuff assumed to exist */ /* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */ extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
extern rtems_cpu_table Cpu_table; /* owned by BSP */
/* /*
* Device Driver Table Entries * Device Driver Table Entries

View File

@@ -68,11 +68,7 @@
*/ */
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
void *bsp_ram_end = (void *)RAM_END; /* first addr behind avail. ram area */ void *bsp_ram_end = (void *)RAM_END; /* first addr behind avail. ram area */
@@ -173,11 +169,8 @@ void bsp_start( void )
((char *)(bsp_ram_end)) - BSP_Configuration.work_space_size; ((char *)(bsp_ram_end)) - BSP_Configuration.work_space_size;
/* /*
* initialize the CPU table for this BSP * initialize the device driver parameters
*/ */
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
bsp_clicks_per_usec = 25; bsp_clicks_per_usec = 25;
bsp_serial_per_sec = 25000000; bsp_serial_per_sec = 25000000;
bsp_serial_external_clock = 0; bsp_serial_external_clock = 0;

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, include/bsp.h, startup/bspstart.c: Moved most of the * Makefile.am, include/bsp.h, startup/bspstart.c: Moved most of the

View File

@@ -69,7 +69,6 @@
*/ */
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024)
/* uart.c uses out_8 instead of outb */ /* uart.c uses out_8 instead of outb */
#define BSP_UART_IOBASE_COM1 GT64260_DEV1_BASE + 0x20000 #define BSP_UART_IOBASE_COM1 GT64260_DEV1_BASE + 0x20000

View File

@@ -127,10 +127,9 @@ static char cmdline_buf[CMDLINE_BUF_SIZE];
char *BSP_commandline_string = cmdline_buf; char *BSP_commandline_string = cmdline_buf;
/* /*
* system init stack and soft ir stack size * system init stack
*/ */
#define INIT_STACK_SIZE 0x1000 #define INIT_STACK_SIZE 0x1000
#define INTR_STACK_SIZE CONFIGURE_INTERRUPT_STACK_MEMORY
void BSP_panic(char *s) void BSP_panic(char *s)
{ {
@@ -150,11 +149,7 @@ void _BSP_Fatal_error(unsigned int v)
*/ */
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -327,7 +322,8 @@ void bsp_start( void )
* This could be done latter (e.g in IRQ_INIT) but it helps to understand * This could be done latter (e.g in IRQ_INIT) but it helps to understand
* some settings below... * some settings below...
*/ */
BSP_heap_start = ((uint32_t) __rtems_end) + INIT_STACK_SIZE + INTR_STACK_SIZE; BSP_heap_start = ((uint32_t) __rtems_end) + INIT_STACK_SIZE +
rtems_configuration_get_interrupt_stack_size();
intrStack = BSP_heap_start - PPC_MINIMUM_STACK_FRAME_SIZE; intrStack = BSP_heap_start - PPC_MINIMUM_STACK_FRAME_SIZE;
/* make sure it's properly aligned */ /* make sure it's properly aligned */
@@ -402,13 +398,6 @@ void bsp_start( void )
printk("Now BSP_mem_size = 0x%x\n",BSP_mem_size); printk("Now BSP_mem_size = 0x%x\n",BSP_mem_size);
/*
* Set up our hooks
* Make sure libc_init is done before drivers initialized so that
* they can use atexit()
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
/* P94 : 7455 TB/DECR is clocked by the system bus clock frequency */ /* P94 : 7455 TB/DECR is clocked by the system bus clock frequency */
bsp_clicks_per_usec = BSP_bus_frequency/(BSP_time_base_divisor * 1000); bsp_clicks_per_usec = BSP_bus_frequency/(BSP_time_base_divisor * 1000);
@@ -421,8 +410,8 @@ void bsp_start( void )
work_space_start = work_space_start =
(unsigned char *)BSP_mem_size - BSP_Configuration.work_space_size; (unsigned char *)BSP_mem_size - BSP_Configuration.work_space_size;
if ( work_space_start <= if ( work_space_start <= ((unsigned char *)__rtems_end) + INIT_STACK_SIZE +
((unsigned char *)__rtems_end) + INIT_STACK_SIZE + INTR_STACK_SIZE) { rtems_configuration_get_interrupt_stack_size()) {
printk( "bspstart: Not enough RAM!!!\n" ); printk( "bspstart: Not enough RAM!!!\n" );
bsp_cleanup(); bsp_cleanup();
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, irq/no_pic.c: Spacing. * Makefile.am, irq/no_pic.c: Spacing.

View File

@@ -38,15 +38,6 @@ extern "C" {
#include <bspopts.h> #include <bspopts.h>
/*
* confdefs.h overrides for this BSP:
* - termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (12 * 1024)
#ifdef ASM #ifdef ASM
/* Definition of where to store registers in alignment handler */ /* Definition of where to store registers in alignment handler */
#define ALIGN_REGS 0x0140 #define ALIGN_REGS 0x0140
@@ -91,7 +82,6 @@ extern int end; /* last address in the program */
void bsp_cleanup( void ); void bsp_cleanup( void );
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */ extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
extern rtems_cpu_table Cpu_table; /* owned by BSP */
#endif /* ASM */ #endif /* ASM */

View File

@@ -51,7 +51,6 @@ extern int PSIM_INSTRUCTIONS_PER_MICROSECOND;
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
/* /*
* Tells us where to put the workspace in case remote debugger is present. * Tells us where to put the workspace in case remote debugger is present.
@@ -79,10 +78,9 @@ void bsp_postdriver_hook(void);
void bsp_libc_init( void *, uint32_t, int ); void bsp_libc_init( void *, uint32_t, int );
/* /*
* system init stack and soft irq stack size * system init stack
*/ */
#define INIT_STACK_SIZE 0x1000 #define INIT_STACK_SIZE 0x1000
#define INTR_STACK_SIZE CONFIGURE_INTERRUPT_STACK_MEMORY
void BSP_panic(char *s) void BSP_panic(char *s)
{ {
@@ -142,13 +140,8 @@ void bsp_start( void )
current_ppc_cpu = PPC_PSIM; current_ppc_cpu = PPC_PSIM;
/* /*
* Set up our hooks * initialize the device driver parameters
* Make sure libc_init is done before drivers initialized so that
* they can use atexit()
*/ */
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
BSP_bus_frequency = (unsigned int)&PSIM_INSTRUCTIONS_PER_MICROSECOND; BSP_bus_frequency = (unsigned int)&PSIM_INSTRUCTIONS_PER_MICROSECOND;
BSP_time_base_divisor = 1; BSP_time_base_divisor = 1;
@@ -182,8 +175,9 @@ void bsp_start( void )
* This could be done latter (e.g in IRQ_INIT) but it helps to understand * This could be done latter (e.g in IRQ_INIT) but it helps to understand
* some settings below... * some settings below...
*/ */
intrStack = ((uint32_t) __rtems_end) + intrStack = ((uint32_t) __rtems_end) + INIT_STACK_SIZE +
INIT_STACK_SIZE + INTR_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE; rtems_configuration_get_interrupt_stack_size() -
PPC_MINIMUM_STACK_FRAME_SIZE;
/* make sure it's properly aligned */ /* make sure it's properly aligned */
intrStack &= ~(CPU_STACK_ALIGNMENT-1); intrStack &= ~(CPU_STACK_ALIGNMENT-1);

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -37,7 +37,6 @@ extern "C" {
#else #else
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS (4) #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS (4)
#endif #endif
#define CONFIGURE_INTERRUPT_STACK_MEMORY (12 * 1024)
#ifdef ASM #ifdef ASM
/* Definition of where to store registers in alignment handler */ /* Definition of where to store registers in alignment handler */
@@ -222,7 +221,6 @@ unsigned int SCORE603e_FLASH_Enable_writes(
( ((_data&0x00ff)<<8) | ((_data&0xff00)>>8) ) ( ((_data&0x00ff)<<8) | ((_data&0xff00)>>8) )
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */ extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
extern rtems_cpu_table Cpu_table; /* owned by BSP */
extern uint32_t bsp_isr_level; extern uint32_t bsp_isr_level;
#endif /* ASM */ #endif /* ASM */

View File

@@ -49,7 +49,6 @@ uint32_t bsp_clicks_per_usec;
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
uint32_t bsp_isr_level; uint32_t bsp_isr_level;
void BSP_panic(char *s) void BSP_panic(char *s)
@@ -306,11 +305,8 @@ void bsp_start( void )
BSP_Configuration.work_space_start = work_space_start; BSP_Configuration.work_space_start = work_space_start;
/* /*
* initialize the CPU table for this BSP * initialize the device driver parameters
*/ */
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
bsp_clicks_per_usec = 66 / 4; /* XXX get from linkcmds */ bsp_clicks_per_usec = 66 / 4; /* XXX get from linkcmds */
#if ( PPC_USE_DATA_CACHE ) #if ( PPC_USE_DATA_CACHE )

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Moved most of the remaining CPU Table fields to * startup/bspstart.c: Moved most of the remaining CPU Table fields to

View File

@@ -49,15 +49,6 @@ extern "C" {
#include <bspopts.h> #include <bspopts.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024)
#ifdef ASM #ifdef ASM
/* Definition of where to store registers in alignment handler */ /* Definition of where to store registers in alignment handler */
#define ALIGN_REGS 0x0140 #define ALIGN_REGS 0x0140
@@ -82,7 +73,6 @@ extern uint32_t _top_of_ram;
/* miscellaneous stuff assumed to exist */ /* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */ extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
extern rtems_cpu_table Cpu_table; /* owned by BSP */
/* Network Defines */ /* Network Defines */

View File

@@ -79,11 +79,8 @@ SPR_RW(SPRG1)
*/ */
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
uint32_t _heap_start; uint32_t _heap_start;
@@ -197,17 +194,13 @@ void bsp_start( void )
*/ */
myCpu = get_ppc_cpu_type(); myCpu = get_ppc_cpu_type();
myCpuRevision = get_ppc_cpu_revision(); myCpuRevision = get_ppc_cpu_revision();
/*
* initialize the CPU table for this BSP
* NOTE: this must be before the exception initialization,
* because exception code useses some information from Cpu_table
*/
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; /*
* initialize the device driver parameters
*/
/* timebase register ticks/microsecond */ /* timebase register ticks/microsecond */
bsp_clicks_per_usec = (250000000 / 1000000); bsp_clicks_per_usec = (250000000 / 1000000);
bsp_serial_per_sec = 14625000; bsp_serial_per_sec = 14625000;
bsp_serial_external_clock = 0; bsp_serial_external_clock = 0;
bsp_timer_internal_clock = 1; bsp_timer_internal_clock = 1;

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -35,15 +35,6 @@ extern "C" {
#include <bspopts.h> #include <bspopts.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
/* EDIT: To activate the sci driver, change the define below */ /* EDIT: To activate the sci driver, change the define below */
#if 1 #if 1
#include <rtems/devnull.h> #include <rtems/devnull.h>

View File

@@ -38,11 +38,7 @@ uint32_t bsp_clicks_per_second;
*/ */
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -116,14 +112,6 @@ void bsp_start(void)
#if ( CPU_ALLOCATE_INTERRUPT_STACK == FALSE ) #if ( CPU_ALLOCATE_INTERRUPT_STACK == FALSE )
_CPU_Interrupt_stack_low = &CPU_Interrupt_stack_low ; _CPU_Interrupt_stack_low = &CPU_Interrupt_stack_low ;
_CPU_Interrupt_stack_high = &CPU_Interrupt_stack_high ; _CPU_Interrupt_stack_high = &CPU_Interrupt_stack_high ;
Cpu_table.interrupt_stack_size =
(uint32_t) (&CPU_Interrupt_stack_high) -
(uint32_t) (&CPU_Interrupt_stack_low) ;
#endif
#if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE )
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
#endif #endif
bsp_clicks_per_second = CPU_CLOCK_RATE_HZ; bsp_clicks_per_second = CPU_CLOCK_RATE_HZ;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

View File

@@ -46,15 +46,6 @@ extern "C" {
#include <bspopts.h> #include <bspopts.h>
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
* - Interrupt stack space is not minimum if defined.
*/
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
#if 0 #if 0
#include <rtems/devnull.h> #include <rtems/devnull.h>
#define BSP_CONSOLE_DEVNAME "/dev/null" #define BSP_CONSOLE_DEVNAME "/dev/null"

View File

@@ -38,13 +38,8 @@ uint32_t bsp_clicks_per_second;
*/ */
extern void bsp_hw_init(void); extern void bsp_hw_init(void);
extern rtems_configuration_table Configuration; extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration; rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname; char *rtems_progname;
/* /*
@@ -122,15 +117,10 @@ void bsp_start(void)
#if ( CPU_ALLOCATE_INTERRUPT_STACK == FALSE ) #if ( CPU_ALLOCATE_INTERRUPT_STACK == FALSE )
_CPU_Interrupt_stack_low = &CPU_Interrupt_stack_low ; _CPU_Interrupt_stack_low = &CPU_Interrupt_stack_low ;
_CPU_Interrupt_stack_high = &CPU_Interrupt_stack_high ; _CPU_Interrupt_stack_high = &CPU_Interrupt_stack_high ;
/* This isn't used anywhere */
Cpu_table.interrupt_stack_size =
&CPU_Interrupt_stack_high - &CPU_Interrupt_stack_low ;
#endif
#if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE )
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
#endif #endif
/*
* initialize the device driver parameters
*/
bsp_clicks_per_second = CPU_CLOCK_RATE_HZ; bsp_clicks_per_second = CPU_CLOCK_RATE_HZ;
} }

View File

@@ -1,3 +1,9 @@
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: 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> 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Moved most of the remaining CPU * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU

Some files were not shown because too many files have changed in this diff Show More