forked from Imagelibrary/rtems
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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:
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -29,8 +29,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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -83,8 +81,6 @@ void bsp_start( void )
|
|||||||
{
|
{
|
||||||
extern int WorkspaceBase;
|
extern int WorkspaceBase;
|
||||||
|
|
||||||
Cpu_table.interrupt_stack_size = 4096;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if ( BSP_Configuration.work_space_size >(512*1024) )
|
if ( BSP_Configuration.work_space_size >(512*1024) )
|
||||||
_sys_exit( 1 );
|
_sys_exit( 1 );
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -32,7 +32,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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -186,11 +185,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 = 4096;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Invalidate the cache and disable it
|
* Invalidate the cache and disable it
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -32,10 +32,8 @@
|
|||||||
*/
|
*/
|
||||||
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;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Cacheable areas
|
* Cacheable areas
|
||||||
*/
|
*/
|
||||||
@@ -179,11 +177,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 = 4096;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Invalidate the cache and disable it
|
* Invalidate the cache and disable it
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -34,11 +34,7 @@ unsigned long free_mem_start;
|
|||||||
unsigned long free_mem_end;
|
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;
|
|
||||||
|
|
||||||
char *rtems_progname;
|
char *rtems_progname;
|
||||||
|
|
||||||
au1x00_uart_t *uart0 = (au1x00_uart_t *)AU1X00_UART0_ADDR;
|
au1x00_uart_t *uart0 = (au1x00_uart_t *)AU1X00_UART0_ADDR;
|
||||||
@@ -96,8 +92,6 @@ void bsp_start( void )
|
|||||||
extern void mips_install_isr_entries(void);
|
extern void mips_install_isr_entries(void);
|
||||||
unsigned int compare = 0;
|
unsigned int compare = 0;
|
||||||
|
|
||||||
Cpu_table.interrupt_stack_size = 8192;
|
|
||||||
|
|
||||||
/* Place RTEMS workspace at beginning of free memory. */
|
/* Place RTEMS workspace at beginning of free memory. */
|
||||||
BSP_Configuration.work_space_start = (void *)&_bss_free_start;
|
BSP_Configuration.work_space_start = (void *)&_bss_free_start;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -31,11 +31,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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -87,8 +83,6 @@ void bsp_start( void )
|
|||||||
extern void mips_install_isr_entries();
|
extern void mips_install_isr_entries();
|
||||||
extern void mips_gdb_stub_install(void);
|
extern void mips_gdb_stub_install(void);
|
||||||
|
|
||||||
Cpu_table.interrupt_stack_size = 4096;
|
|
||||||
|
|
||||||
/* HACK -- tied to value linkcmds */
|
/* HACK -- tied to value linkcmds */
|
||||||
if ( BSP_Configuration.work_space_size > (4096*1024) )
|
if ( BSP_Configuration.work_space_size > (4096*1024) )
|
||||||
_sys_exit( 1 );
|
_sys_exit( 1 );
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -81,8 +77,6 @@ void bsp_start( void )
|
|||||||
extern void _sys_exit(int);
|
extern void _sys_exit(int);
|
||||||
extern void mips_install_isr_entries(void);
|
extern void mips_install_isr_entries(void);
|
||||||
|
|
||||||
Cpu_table.interrupt_stack_size = 4096;
|
|
||||||
|
|
||||||
/* HACK -- tied to value linkcmds */
|
/* HACK -- tied to value linkcmds */
|
||||||
if ( BSP_Configuration.work_space_size >(4096*1024) )
|
if ( BSP_Configuration.work_space_size >(4096*1024) )
|
||||||
_sys_exit( 1 );
|
_sys_exit( 1 );
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -30,11 +30,7 @@ extern int end; /* defined by linker */
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -87,10 +83,6 @@ void bsp_start( void )
|
|||||||
extern int WorkspaceBase;
|
extern int WorkspaceBase;
|
||||||
extern void mips_install_isr_entries(void);
|
extern void mips_install_isr_entries(void);
|
||||||
|
|
||||||
/* Configure Number of Register Caches */
|
|
||||||
|
|
||||||
Cpu_table.interrupt_stack_size = 4096;
|
|
||||||
|
|
||||||
BSP_Configuration.work_space_start =
|
BSP_Configuration.work_space_start =
|
||||||
(void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x100) & ~0x7);
|
(void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x100) & ~0x7);
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -30,11 +30,7 @@ extern int end; /* defined by linker */
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -87,8 +83,6 @@ void bsp_start( void )
|
|||||||
extern int WorkspaceBase;
|
extern int WorkspaceBase;
|
||||||
extern void mips_install_isr_entries(void);
|
extern void mips_install_isr_entries(void);
|
||||||
|
|
||||||
Cpu_table.interrupt_stack_size = 4096;
|
|
||||||
|
|
||||||
BSP_Configuration.work_space_start =
|
BSP_Configuration.work_space_start =
|
||||||
(void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x100) & ~0x7);
|
(void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x100) & ~0x7);
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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-04 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2007-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* clock/clock.c: Fix typo.
|
* clock/clock.c: Fix typo.
|
||||||
|
|||||||
@@ -129,7 +129,6 @@ SPR_RW(SPRG1)
|
|||||||
extern rtems_configuration_table Configuration;
|
extern rtems_configuration_table Configuration;
|
||||||
extern unsigned long intrStackPtr;
|
extern unsigned long intrStackPtr;
|
||||||
rtems_configuration_table BSP_Configuration;
|
rtems_configuration_table BSP_Configuration;
|
||||||
rtems_cpu_table Cpu_table;
|
|
||||||
char *rtems_progname;
|
char *rtems_progname;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -287,13 +286,6 @@ void bsp_start(void)
|
|||||||
/* Signal them that this BSP has fixed PR288 - eventually, this should go away */
|
/* Signal them that this BSP has fixed PR288 - eventually, this should go away */
|
||||||
_write_SPRG0(PPC_BSP_HAS_FIXED_PR288);
|
_write_SPRG0(PPC_BSP_HAS_FIXED_PR288);
|
||||||
|
|
||||||
/*
|
|
||||||
* initialize the CPU table for this BSP
|
|
||||||
*/
|
|
||||||
|
|
||||||
if( Cpu_table.interrupt_stack_size < 4*1024 )
|
|
||||||
Cpu_table.interrupt_stack_size = 4 * 1024;
|
|
||||||
|
|
||||||
bsp_clicks_per_usec = (IPB_CLOCK/1000000);
|
bsp_clicks_per_usec = (IPB_CLOCK/1000000);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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-04 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
|
2007-12-04 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
|
||||||
|
|
||||||
* spi/spi_init.c: added missing file
|
* spi/spi_init.c: added missing file
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ extern rtems_configuration_table Configuration;
|
|||||||
extern unsigned long intrStackPtr;
|
extern unsigned long intrStackPtr;
|
||||||
rtems_configuration_table BSP_Configuration;
|
rtems_configuration_table BSP_Configuration;
|
||||||
static char *BSP_heap_start, *BSP_heap_end;
|
static char *BSP_heap_start, *BSP_heap_end;
|
||||||
rtems_cpu_table Cpu_table;
|
|
||||||
char *rtems_progname;
|
char *rtems_progname;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -206,12 +205,8 @@ void bsp_start(void)
|
|||||||
_write_SPRG0(PPC_BSP_HAS_FIXED_PR288);
|
_write_SPRG0(PPC_BSP_HAS_FIXED_PR288);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initialize the CPU table for this BSP
|
* initialize the device driver parameters
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if( Cpu_table.interrupt_stack_size < 4*1024 )
|
|
||||||
Cpu_table.interrupt_stack_size = 4 * 1024;
|
|
||||||
|
|
||||||
bsp_clicks_per_usec = (BSP_CSB_CLK_FRQ/1000000);
|
bsp_clicks_per_usec = (BSP_CSB_CLK_FRQ/1000000);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -69,9 +69,6 @@ SPR_RW(SPRG1)
|
|||||||
extern rtems_configuration_table Configuration;
|
extern rtems_configuration_table Configuration;
|
||||||
extern unsigned long intrStackPtr;
|
extern unsigned long intrStackPtr;
|
||||||
rtems_configuration_table BSP_Configuration;
|
rtems_configuration_table BSP_Configuration;
|
||||||
|
|
||||||
rtems_cpu_table Cpu_table;
|
|
||||||
|
|
||||||
char *rtems_progname;
|
char *rtems_progname;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -295,12 +292,8 @@ 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
|
* initialize the device driver parameters
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if( Cpu_table.interrupt_stack_size < 4*1024 )
|
|
||||||
Cpu_table.interrupt_stack_size = 4 * 1024;
|
|
||||||
|
|
||||||
bsp_clicks_per_usec = 10; /* for 40MHz extclk */
|
bsp_clicks_per_usec = 10; /* for 40MHz extclk */
|
||||||
bsp_serial_per_sec = 40000000;
|
bsp_serial_per_sec = 40000000;
|
||||||
bsp_serial_external_clock = 0;
|
bsp_serial_external_clock = 0;
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|||||||
@@ -48,9 +48,6 @@ SPR_RW(SPRG1)
|
|||||||
extern rtems_configuration_table Configuration;
|
extern rtems_configuration_table Configuration;
|
||||||
extern unsigned long intrStackPtr;
|
extern unsigned long intrStackPtr;
|
||||||
rtems_configuration_table BSP_Configuration;
|
rtems_configuration_table BSP_Configuration;
|
||||||
|
|
||||||
rtems_cpu_table Cpu_table;
|
|
||||||
|
|
||||||
char *rtems_progname;
|
char *rtems_progname;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -88,11 +85,6 @@ void _BSP_Fatal_error(unsigned int v)
|
|||||||
* Must not use libc (to do io) from here, since drivers are not yet
|
* Must not use libc (to do io) from here, since drivers are not yet
|
||||||
* initialized.
|
* initialized.
|
||||||
*
|
*
|
||||||
* Installed in the rtems_cpu_table defined in
|
|
||||||
* rtems/c/src/exec/score/cpu/powerpc/rtems/new-exceptions/cpu.h by main()
|
|
||||||
* below. Called from rtems_initialize_executive() defined in
|
|
||||||
* rtems/c/src/exec/sapi/src/init.c
|
|
||||||
*
|
|
||||||
* Input parameters: NONE
|
* Input parameters: NONE
|
||||||
*
|
*
|
||||||
* Output parameters: NONE
|
* Output parameters: NONE
|
||||||
@@ -185,11 +177,8 @@ void bsp_start(void)
|
|||||||
BSP_Configuration.work_space_start = _WorkspaceBase;
|
BSP_Configuration.work_space_start = _WorkspaceBase;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initialize the CPU table for this BSP
|
* initialize the device driver parameters
|
||||||
*/
|
*/
|
||||||
if( Cpu_table.interrupt_stack_size < 4 * 1024 )
|
|
||||||
Cpu_table.interrupt_stack_size = 4 * 1024;
|
|
||||||
|
|
||||||
bsp_clicks_per_usec = BSP_CRYSTAL_HZ / 4 / 1000000;
|
bsp_clicks_per_usec = BSP_CRYSTAL_HZ / 4 / 1000000;
|
||||||
bsp_clock_speed = BSP_CLOCK_HZ; /* for SCI baud rate generator */
|
bsp_clock_speed = BSP_CLOCK_HZ; /* for SCI baud rate generator */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user