mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 06:07:23 +08:00
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
|
||||
|
||||
@@ -34,8 +34,6 @@ extern "C" {
|
||||
/* How many serial ports? */
|
||||
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
int get_perclk1_freq(void);
|
||||
|
||||
/*
|
||||
|
||||
@@ -27,10 +27,6 @@ extern void *_bss_free_start;
|
||||
unsigned long free_mem_start;
|
||||
unsigned long free_mem_end;
|
||||
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
|
||||
char *rtems_progname = "RTEMS";
|
||||
|
||||
extern void rtems_irq_mngt_init(void);
|
||||
void bsp_libc_init( void *, uint32_t, int );
|
||||
void bsp_postdriver_hook(void);
|
||||
@@ -112,10 +108,10 @@ void bsp_start_default( void )
|
||||
MC9328MXL_AITC_NIMASK = 0x1f;
|
||||
|
||||
/* Place RTEMS workspace at beginning of free memory. */
|
||||
BSP_Configuration.work_space_start = (void *)&_bss_free_start;
|
||||
Configuration.work_space_start = (void *)&_bss_free_start;
|
||||
|
||||
free_mem_start = ((uint32_t)&_bss_free_start +
|
||||
BSP_Configuration.work_space_size);
|
||||
rtems_configuration_get_work_space_size());
|
||||
|
||||
free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
|
||||
|
||||
@@ -135,21 +131,15 @@ void bsp_start_default( void )
|
||||
*/
|
||||
#if 0
|
||||
printk( "work_space_size = 0x%x\n",
|
||||
BSP_Configuration.work_space_size );
|
||||
printk( "maximum_extensions = 0x%x\n",
|
||||
BSP_Configuration.maximum_extensions );
|
||||
rtems_configuration_get_work_space_size() );
|
||||
printk( "microseconds_per_tick = 0x%x\n",
|
||||
BSP_Configuration.microseconds_per_tick );
|
||||
rtems_configuration_get_microseconds_per_tick() );
|
||||
printk( "ticks_per_timeslice = 0x%x\n",
|
||||
BSP_Configuration.ticks_per_timeslice );
|
||||
printk( "number_of_device_drivers = 0x%x\n",
|
||||
BSP_Configuration.number_of_device_drivers );
|
||||
printk( "Device_driver_table = 0x%x\n",
|
||||
BSP_Configuration.Device_driver_table );
|
||||
rtems_configuration_get_ticks_per_timeslice() );
|
||||
printk( "work_space_start = 0x%x\n",
|
||||
BSP_Configuration.work_space_start );
|
||||
Configuration.work_space_start );
|
||||
printk( "work_space_size = 0x%x\n",
|
||||
BSP_Configuration.work_space_size );
|
||||
rtems_configuration_get_work_space_size() );
|
||||
#endif
|
||||
} /* bsp_start */
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
|
||||
|
||||
@@ -40,8 +40,6 @@ static inline int32_t BSP_get_baud(void) {return 38400;}
|
||||
/* How many serial ports? */
|
||||
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
#define ST_PIMR_PIV 33 /* 33 ticks of the 32.768Khz clock ~= 1msec */
|
||||
|
||||
/*
|
||||
|
||||
@@ -29,9 +29,6 @@ extern void *_bss_free_start;
|
||||
unsigned long free_mem_start;
|
||||
unsigned long free_mem_end;
|
||||
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
char *rtems_progname = "RTEMS";
|
||||
|
||||
/* Function prototypes */
|
||||
extern void rtems_irq_mngt_init(void);
|
||||
void bsp_libc_init( void *, uint32_t, int );
|
||||
@@ -100,10 +97,10 @@ void bsp_start_default( void )
|
||||
fix_mac_addr();
|
||||
|
||||
/* Place RTEMS workspace at beginning of free memory. */
|
||||
BSP_Configuration.work_space_start = (void *)&_bss_free_start;
|
||||
Configuration.work_space_start = (void *)&_bss_free_start;
|
||||
|
||||
free_mem_start = ((uint32_t)&_bss_free_start +
|
||||
BSP_Configuration.work_space_size);
|
||||
rtems_configuration_get_work_space_size());
|
||||
|
||||
free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
|
||||
|
||||
@@ -123,21 +120,13 @@ void bsp_start_default( void )
|
||||
*/
|
||||
#if 0
|
||||
printk( "work_space_size = 0x%x\n\r",
|
||||
BSP_Configuration.work_space_size );
|
||||
printk( "maximum_extensions = 0x%x\n\r",
|
||||
BSP_Configuration.maximum_extensions );
|
||||
rtems_configuration_get_work_space_size() );
|
||||
printk( "microseconds_per_tick = 0x%x\n\r",
|
||||
BSP_Configuration.microseconds_per_tick );
|
||||
rtems_configuration_get_microseconds_per_tick() );
|
||||
printk( "ticks_per_timeslice = 0x%x\n\r",
|
||||
BSP_Configuration.ticks_per_timeslice );
|
||||
printk( "number_of_device_drivers = 0x%x\n\r",
|
||||
BSP_Configuration.number_of_device_drivers );
|
||||
printk( "Device_driver_table = 0x%x\n\r",
|
||||
BSP_Configuration.Device_driver_table );
|
||||
printk( "work_space_start = 0x%x\n\r",
|
||||
BSP_Configuration.work_space_start );
|
||||
rtems_configuration_get_ticks_per_timeslice() );
|
||||
printk( "work_space_size = 0x%x\n\r",
|
||||
BSP_Configuration.work_space_size );
|
||||
rtems_configuration_get_work_space_size() );
|
||||
#endif
|
||||
} /* bsp_start */
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
|
||||
|
||||
@@ -30,10 +30,9 @@ extern "C" {
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <s3c2400.h>
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
#define gp32_initButtons() {rPBCON=0x0;}
|
||||
#define gp32_getButtons() ( (((~rPEDAT >> 6) & 0x3 )<<8) | (((~rPBDAT >> 8) & 0xFF)<<0) )
|
||||
#define gp32_getButtons() \
|
||||
( (((~rPEDAT >> 6) & 0x3 )<<8) | (((~rPBDAT >> 8) & 0xFF)<<0) )
|
||||
|
||||
/*functions to get the differents s3c2400 clks*/
|
||||
uint32_t get_FCLK(void);
|
||||
|
||||
@@ -31,14 +31,6 @@ extern void *_bss_free_start;
|
||||
unsigned long free_mem_start;
|
||||
unsigned long free_mem_end;
|
||||
|
||||
/* The original BSP configuration table from the application and our copy of it
|
||||
with some changes. */
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
|
||||
char *rtems_progname = "RTEMS"; /* Program name - from main(). */
|
||||
|
||||
/*-------------------------------------------------------------------------+
|
||||
| External Prototypes
|
||||
+--------------------------------------------------------------------------*/
|
||||
@@ -137,9 +129,9 @@ void bsp_start_default( void )
|
||||
rTCFG0=(cr | (0<<0));
|
||||
|
||||
/* Place RTEMS workspace at beginning of free memory. */
|
||||
BSP_Configuration.work_space_start = (void *)&_bss_free_start;
|
||||
Configuration.work_space_start = (void *)&_bss_free_start;
|
||||
|
||||
free_mem_start = ((uint32_t)&_bss_free_start + BSP_Configuration.work_space_size);
|
||||
free_mem_start = ((uint32_t)&_bss_free_start + rtems_configuration_get_work_space_size());
|
||||
|
||||
free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
|
||||
|
||||
@@ -157,22 +149,18 @@ void bsp_start_default( void )
|
||||
*/
|
||||
|
||||
#if 0
|
||||
printk( "work_space_size = 0x%x\n", BSP_Configuration.work_space_size );
|
||||
printk( "maximum_extensions = 0x%x\n", BSP_Configuration.maximum_extensions );
|
||||
printk( "work_space_size = 0x%x\n",
|
||||
rtems_configuration_get_work_space_size() );
|
||||
printk( "microseconds_per_tick = 0x%x\n",
|
||||
BSP_Configuration.microseconds_per_tick );
|
||||
rtems_configuration_get_microseconds_per_tick() );
|
||||
printk( "ticks_per_timeslice = 0x%x\n",
|
||||
BSP_Configuration.ticks_per_timeslice );
|
||||
printk( "number_of_device_drivers = 0x%x\n",
|
||||
BSP_Configuration.number_of_device_drivers );
|
||||
printk( "Device_driver_table = 0x%x\n",
|
||||
BSP_Configuration.Device_driver_table );
|
||||
rtems_configuration_get_ticks_per_timeslice() );
|
||||
|
||||
printk( "_heap_size = 0x%x\n", _heap_size );
|
||||
/* printk( "_stack_size = 0x%x\n", _stack_size );*/
|
||||
printk( "rtemsFreeMemStart = 0x%x\n", rtemsFreeMemStart );
|
||||
printk( "work_space_start = 0x%x\n", BSP_Configuration.work_space_start );
|
||||
printk( "work_space_size = 0x%x\n", BSP_Configuration.work_space_size );
|
||||
printk( "work_space_start = 0x%x\n", Configuration.work_space_start );
|
||||
printk( "work_space_size = 0x%x\n", rtems_configuration_get_work_space_size() );
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
|
||||
|
||||
@@ -127,8 +127,6 @@ int cs8900_driver_attach (struct rtems_bsdnet_ifconfig *config,
|
||||
|
||||
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Network driver configuration
|
||||
*/
|
||||
|
||||
@@ -39,18 +39,9 @@ extern void *_bss_free_start;
|
||||
extern void *_bss_start_;
|
||||
extern void *_bss_end_;
|
||||
|
||||
|
||||
unsigned long free_mem_start;
|
||||
unsigned long free_mem_end;
|
||||
|
||||
/* The original BSP configuration table from the application and our copy of it
|
||||
with some changes. */
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
|
||||
char *rtems_progname; /* Program name - from main(). */
|
||||
|
||||
/*************************************************************/
|
||||
/* Function prototypes */
|
||||
/*************************************************************/
|
||||
@@ -115,13 +106,12 @@ void bsp_pretasking_hook(void)
|
||||
/* This function also configures the CPU's memory protection unit. */
|
||||
/* */
|
||||
/* GLOBALS USED: */
|
||||
/* CPU_table */
|
||||
/* BSP_Configuration */
|
||||
/* free_mem_start */
|
||||
/* free_mem_end */
|
||||
/* free_mem_nocache_start */
|
||||
/* _bss_free_start */
|
||||
/* mpu_region_tbl */
|
||||
/* Configuration */
|
||||
/* free_mem_start */
|
||||
/* free_mem_end */
|
||||
/* free_mem_nocache_start */
|
||||
/* _bss_free_start */
|
||||
/* mpu_region_tbl */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -184,10 +174,10 @@ void bsp_start_default( void )
|
||||
VICProtection = 0;
|
||||
|
||||
/* Place RTEMS workspace at beginning of free memory. */
|
||||
BSP_Configuration.work_space_start = (void *)&_bss_free_start;
|
||||
Configuration.work_space_start = (void *)&_bss_free_start;
|
||||
|
||||
free_mem_start = ((uint32_t)&_bss_free_start +
|
||||
BSP_Configuration.work_space_size);
|
||||
rtems_configuration_get_work_space_size());
|
||||
|
||||
free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
|
||||
|
||||
@@ -217,20 +207,16 @@ void bsp_start_default( void )
|
||||
*/
|
||||
#if 0
|
||||
|
||||
printk( "work_space_size = 0x%x\n", BSP_Configuration.work_space_size );
|
||||
printk( "maximum_extensions = 0x%x\n", BSP_Configuration.maximum_extensions );
|
||||
printk( "work_space_size = 0x%x\n",
|
||||
rtems_configuration_get_work_space_size() );
|
||||
printk( "microseconds_per_tick = 0x%x\n",
|
||||
BSP_Configuration.microseconds_per_tick );
|
||||
rtems_configuration_get_microseconds_per_tick() );
|
||||
printk( "ticks_per_timeslice = 0x%x\n",
|
||||
BSP_Configuration.ticks_per_timeslice );
|
||||
printk( "number_of_device_drivers = 0x%x\n",
|
||||
BSP_Configuration.number_of_device_drivers );
|
||||
printk( "Device_driver_table = 0x%x\n",
|
||||
BSP_Configuration.Device_driver_table );
|
||||
rtems_configuration_get_ticks_per_timeslice() );
|
||||
|
||||
/* printk( "_stack_size = 0x%x\n", _stack_size );*/
|
||||
printk( "work_space_start = 0x%x\n", BSP_Configuration.work_space_start );
|
||||
printk( "work_space_size = 0x%x\n", BSP_Configuration.work_space_size );
|
||||
printk( "work_space_start = 0x%x\n", Configuration.work_space_start );
|
||||
printk( "work_space_size = 0x%x\n", rtems_configuration_get_work_space_size() );
|
||||
#endif
|
||||
} /* bsp_start */
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
|
||||
|
||||
@@ -95,8 +95,6 @@ extern "C" {
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
@@ -25,18 +25,6 @@
|
||||
#include <rtems/libcsupport.h>
|
||||
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
|
||||
char *rtems_progname;
|
||||
|
||||
|
||||
const unsigned int dcplbs_table[16][2] = {
|
||||
{ 0xFFA00000, (PAGE_SIZE_1MB | CPLB_D_PAGE_MGMT | CPLB_WT) },
|
||||
{ 0xFF900000, (PAGE_SIZE_1MB | CPLB_D_PAGE_MGMT | CPLB_WT) }, /* L1 Data B */
|
||||
@@ -155,7 +143,7 @@ void bsp_start( void )
|
||||
* not malloc'ed. It is just "pulled from the air".
|
||||
*/
|
||||
|
||||
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
|
||||
Configuration.work_space_start = (void *) &_WorkspaceBase;
|
||||
|
||||
int i=0;
|
||||
for (i=5;i<16;i++) {
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/bspstart.c: Move interrupt_stack_size field from CPU Table to
|
||||
|
||||
@@ -48,8 +48,6 @@ extern "C" {
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
@@ -20,17 +20,6 @@
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
|
||||
char *rtems_progname;
|
||||
|
||||
/*
|
||||
* Use the shared implementations of the following routines
|
||||
*/
|
||||
@@ -59,7 +48,7 @@ void bsp_pretasking_hook(void)
|
||||
extern int WorkspaceBase;
|
||||
|
||||
heapStart = (void *)
|
||||
((unsigned long)&WorkspaceBase + BSP_Configuration.work_space_size);
|
||||
((unsigned long)&WorkspaceBase + rtems_configuration_get_work_space_size());
|
||||
if ( (unsigned long) heapStart > (256 * 1024) )
|
||||
rtems_fatal_error_occurred (('H'<<24) | ('E'<<16) | ('A'<<8) | 'P');
|
||||
heapSize = (256 * 1024) - (unsigned long)(heapStart);
|
||||
@@ -82,11 +71,11 @@ void bsp_start( void )
|
||||
extern int WorkspaceBase;
|
||||
|
||||
/*
|
||||
if ( BSP_Configuration.work_space_size >(512*1024) )
|
||||
if ( rtems_configuration_get_work_space_size() >(512*1024) )
|
||||
_sys_exit( 1 );
|
||||
*/
|
||||
|
||||
BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
|
||||
Configuration.work_space_start = (void *) &WorkspaceBase;
|
||||
}
|
||||
|
||||
void H8BD_Install_IRQ(
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/bspstart.c: Move interrupt_stack_size field from CPU Table to
|
||||
|
||||
@@ -39,8 +39,6 @@ extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int at
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
@@ -26,14 +26,6 @@
|
||||
#include <rtems/libcsupport.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
char *rtems_progname;
|
||||
|
||||
/*
|
||||
* Location of 'VME' access
|
||||
*/
|
||||
@@ -183,7 +175,7 @@ void bsp_start( void )
|
||||
* not malloc'ed. It is just "pulled from the air".
|
||||
*/
|
||||
|
||||
BSP_Configuration.work_space_start = (void *)_WorkspaceBase;
|
||||
Configuration.work_space_start = (void *)_WorkspaceBase;
|
||||
|
||||
/*
|
||||
* Invalidate the cache and disable it
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
|
||||
|
||||
@@ -175,8 +175,6 @@ extern rtems_device_driver rtc_initialize(
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
extern m68k_isr_entry M68Kvec[]; /* vector table address */
|
||||
|
||||
extern rtems_isr (*rtems_clock_hook)(rtems_vector_number);
|
||||
|
||||
@@ -32,16 +32,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
|
||||
extern unsigned int _RamSize;
|
||||
char *rtems_progname;
|
||||
|
||||
/*
|
||||
* Use the shared implementations of the following routines
|
||||
@@ -65,5 +56,5 @@ void bsp_start( void )
|
||||
* not malloc'ed. It is just "pulled from the air".
|
||||
*/
|
||||
|
||||
BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
|
||||
Configuration.work_space_start = (void *)&_WorkspaceBase;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
|
||||
|
||||
@@ -205,8 +205,6 @@ extern rtems_device_driver rtc_initialize(
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
extern m68k_isr_entry M68Kvec[]; /* vector table address */
|
||||
|
||||
extern rtems_isr (*rtems_clock_hook)(rtems_vector_number);
|
||||
|
||||
@@ -32,18 +32,8 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
|
||||
unsigned long _RamSize;
|
||||
|
||||
char *rtems_progname;
|
||||
|
||||
/*
|
||||
* Use the shared implementations of the following routines
|
||||
*/
|
||||
@@ -65,5 +55,5 @@ void bsp_start( void )
|
||||
* not malloc'ed. It is just "pulled from the air".
|
||||
*/
|
||||
|
||||
BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
|
||||
Configuration.work_space_start = (void *)&_WorkspaceBase;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/bspstart.c: Move interrupt_stack_size field from CPU Table to
|
||||
|
||||
@@ -39,8 +39,6 @@ extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int at
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
@@ -26,14 +26,6 @@
|
||||
#include <rtems/libcsupport.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
char *rtems_progname;
|
||||
|
||||
/*
|
||||
* Cacheable areas
|
||||
*/
|
||||
@@ -175,7 +167,7 @@ void bsp_start( void )
|
||||
* not malloc'ed. It is just "pulled from the air".
|
||||
*/
|
||||
|
||||
BSP_Configuration.work_space_start = (void *)_WorkspaceBase;
|
||||
Configuration.work_space_start = (void *)_WorkspaceBase;
|
||||
|
||||
/*
|
||||
* Invalidate the cache and disable it
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
|
||||
|
||||
@@ -177,8 +177,6 @@ struct vme_gcsr_map {
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
extern m68k_isr_entry M68Kvec[]; /* vector table address */
|
||||
|
||||
/*
|
||||
|
||||
@@ -24,15 +24,6 @@
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
char *rtems_progname;
|
||||
|
||||
/*
|
||||
* Use the shared implementations of the following routines
|
||||
*/
|
||||
@@ -140,5 +131,5 @@ void bsp_start( void )
|
||||
rtems_cache_enable_instruction();
|
||||
rtems_cache_enable_data();
|
||||
|
||||
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
|
||||
Configuration.work_space_start = (void *) &_WorkspaceBase;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/bspstart.c: Move interrupt_stack_size field from CPU Table to
|
||||
|
||||
@@ -52,8 +52,6 @@ extern "C" {
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
@@ -20,15 +20,6 @@
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
char *rtems_progname;
|
||||
|
||||
/*
|
||||
* Use the shared implementations of the following routines
|
||||
*/
|
||||
@@ -63,11 +54,11 @@ void bsp_start( void )
|
||||
*/
|
||||
|
||||
/* XXX address shutdown
|
||||
if ( BSP_Configuration.work_space_size >(128*1024) )
|
||||
if ( rtems_configuration_get_work_space_size() >(128*1024) )
|
||||
_sys_exit( 1 );
|
||||
*/
|
||||
|
||||
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
|
||||
Configuration.work_space_start = (void *) &_WorkspaceBase;
|
||||
}
|
||||
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/bspstart.c: Move interrupt_stack_size field from CPU Table to
|
||||
|
||||
@@ -63,8 +63,6 @@ int negate_sw_irw(uint32_t irqnum);
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
@@ -33,10 +33,6 @@ extern void *_bss_free_start;
|
||||
unsigned long free_mem_start;
|
||||
unsigned long free_mem_end;
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
char *rtems_progname;
|
||||
|
||||
au1x00_uart_t *uart0 = (au1x00_uart_t *)AU1X00_UART0_ADDR;
|
||||
au1x00_uart_t *uart3 = (au1x00_uart_t *)AU1X00_UART3_ADDR;
|
||||
|
||||
@@ -93,10 +89,10 @@ void bsp_start( void )
|
||||
unsigned int compare = 0;
|
||||
|
||||
/* Place RTEMS workspace at beginning of free memory. */
|
||||
BSP_Configuration.work_space_start = (void *)&_bss_free_start;
|
||||
Configuration.work_space_start = (void *)&_bss_free_start;
|
||||
|
||||
free_mem_start = ((uint32_t)&_bss_free_start +
|
||||
BSP_Configuration.work_space_size);
|
||||
rtems_configuration_get_work_space_size());
|
||||
|
||||
free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/bspstart.c: Move interrupt_stack_size field from CPU Table to
|
||||
|
||||
@@ -54,8 +54,6 @@ extern void assertSoftwareInterrupt(uint32_t);
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
@@ -25,15 +25,6 @@
|
||||
#include <rtems/libcsupport.h>
|
||||
#include <libcpu/mongoose-v.h>
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
char *rtems_progname;
|
||||
|
||||
/*
|
||||
* Use the shared implementations of the following routines
|
||||
*/
|
||||
@@ -84,10 +75,10 @@ void bsp_start( void )
|
||||
extern void mips_gdb_stub_install(void);
|
||||
|
||||
/* HACK -- tied to value linkcmds */
|
||||
if ( BSP_Configuration.work_space_size > (4096*1024) )
|
||||
if ( rtems_configuration_get_work_space_size() > (4096*1024) )
|
||||
_sys_exit( 1 );
|
||||
|
||||
BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
|
||||
Configuration.work_space_start = (void *) &WorkspaceBase;
|
||||
|
||||
/* mask off any interrupts */
|
||||
MONGOOSEV_WRITE( MONGOOSEV_PERIPHERAL_FUNCTION_INTERRUPT_MASK_REGISTER, 0 );
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
|
||||
|
||||
@@ -80,8 +80,6 @@ extern uint32_t mips_get_timer( void );
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
@@ -22,15 +22,6 @@
|
||||
|
||||
uint32_t bsp_clicks_per_microsecond;
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
char *rtems_progname;
|
||||
|
||||
/*
|
||||
* Use the shared implementations of the following routines
|
||||
*/
|
||||
@@ -96,7 +87,7 @@ void bsp_start( void )
|
||||
* not malloc'ed. It is just "pulled from the air".
|
||||
*/
|
||||
|
||||
BSP_Configuration.work_space_start =
|
||||
Configuration.work_space_start =
|
||||
(void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x2000) & ~0x7);
|
||||
|
||||
bsp_clicks_per_microsecond = CPU_CLOCK_RATE_MHZ;
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/bspstart.c: Move interrupt_stack_size field from CPU Table to
|
||||
|
||||
@@ -32,8 +32,6 @@ extern "C" {
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
@@ -20,15 +20,6 @@
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
char *rtems_progname;
|
||||
|
||||
/*
|
||||
* Use the shared implementations of the following routines
|
||||
*/
|
||||
@@ -78,10 +69,10 @@ void bsp_start( void )
|
||||
extern void mips_install_isr_entries(void);
|
||||
|
||||
/* HACK -- tied to value linkcmds */
|
||||
if ( BSP_Configuration.work_space_size >(4096*1024) )
|
||||
if ( rtems_configuration_get_work_space_size() >(4096*1024) )
|
||||
_sys_exit( 1 );
|
||||
|
||||
BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
|
||||
Configuration.work_space_start = (void *) &WorkspaceBase;
|
||||
|
||||
mips_set_sr( 0xff00 ); /* all interrupts unmasked but globally off */
|
||||
/* depend on the IRC to take care of things */
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
|
||||
Configuration Table. Use the RTEMS provided accessor macros to obtain
|
||||
configuration fields.
|
||||
|
||||
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/bspstart.c: Move interrupt_stack_size field from CPU Table to
|
||||
|
||||
@@ -56,8 +56,6 @@ extern "C" {
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user