Changeset 4130d8e2 in rtems


Ignore:
Timestamp:
Dec 11, 2007, 3:50:25 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
9cf283a
Parents:
f1c53e8e
Message:

2007-12-11 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h, startup/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Location:
c/src/lib/libbsp
Files:
84 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/csb336/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/arm/csb336/include/bsp.h

    rf1c53e8e r4130d8e2  
    3535#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
    3636
    37 extern rtems_configuration_table BSP_Configuration;
    38 
    3937int get_perclk1_freq(void);
    4038
  • c/src/lib/libbsp/arm/csb336/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2828unsigned long           free_mem_end;
    2929
    30 rtems_configuration_table  BSP_Configuration;
    31 
    32 char            *rtems_progname = "RTEMS";
    33 
    3430extern void rtems_irq_mngt_init(void);
    3531void bsp_libc_init( void *, uint32_t, int );
     
    113109
    114110    /* Place RTEMS workspace at beginning of free memory. */
    115     BSP_Configuration.work_space_start = (void *)&_bss_free_start;
     111    Configuration.work_space_start = (void *)&_bss_free_start;
    116112   
    117113    free_mem_start = ((uint32_t)&_bss_free_start +
    118                       BSP_Configuration.work_space_size);
     114                      rtems_configuration_get_work_space_size());
    119115   
    120116    free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
     
    136132#if 0
    137133    printk( "work_space_size = 0x%x\n",
    138             BSP_Configuration.work_space_size );
    139     printk( "maximum_extensions = 0x%x\n",
    140             BSP_Configuration.maximum_extensions );
     134            rtems_configuration_get_work_space_size() );
    141135    printk( "microseconds_per_tick = 0x%x\n",
    142             BSP_Configuration.microseconds_per_tick );
     136            rtems_configuration_get_microseconds_per_tick() );
    143137    printk( "ticks_per_timeslice = 0x%x\n",
    144             BSP_Configuration.ticks_per_timeslice );
    145     printk( "number_of_device_drivers = 0x%x\n",
    146             BSP_Configuration.number_of_device_drivers );
    147     printk( "Device_driver_table = 0x%x\n",
    148             BSP_Configuration.Device_driver_table );
     138            rtems_configuration_get_ticks_per_timeslice() );
    149139    printk( "work_space_start = 0x%x\n",
    150             BSP_Configuration.work_space_start );
     140            Configuration.work_space_start );
    151141    printk( "work_space_size = 0x%x\n",
    152             BSP_Configuration.work_space_size );
     142            rtems_configuration_get_work_space_size() );
    153143#endif
    154144} /* bsp_start */
  • c/src/lib/libbsp/arm/csb337/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/arm/csb337/include/bsp.h

    rf1c53e8e r4130d8e2  
    4141#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
    4242
    43 extern rtems_configuration_table BSP_Configuration;
    44 
    4543#define ST_PIMR_PIV     33      /* 33 ticks of the 32.768Khz clock ~= 1msec */
    4644 
  • c/src/lib/libbsp/arm/csb337/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2929unsigned long           free_mem_start;
    3030unsigned long           free_mem_end;
    31 
    32 rtems_configuration_table  BSP_Configuration; 
    33 char            *rtems_progname = "RTEMS";
    3431
    3532/* Function prototypes */
     
    10198
    10299    /* Place RTEMS workspace at beginning of free memory. */
    103     BSP_Configuration.work_space_start = (void *)&_bss_free_start;
     100    Configuration.work_space_start = (void *)&_bss_free_start;
    104101   
    105102    free_mem_start = ((uint32_t)&_bss_free_start +
    106                       BSP_Configuration.work_space_size);
     103                      rtems_configuration_get_work_space_size());
    107104   
    108105    free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
     
    124121#if 0
    125122    printk( "work_space_size = 0x%x\n\r",
    126             BSP_Configuration.work_space_size );
    127     printk( "maximum_extensions = 0x%x\n\r",
    128             BSP_Configuration.maximum_extensions );
     123            rtems_configuration_get_work_space_size() );
    129124    printk( "microseconds_per_tick = 0x%x\n\r",
    130             BSP_Configuration.microseconds_per_tick );
     125            rtems_configuration_get_microseconds_per_tick() );
    131126    printk( "ticks_per_timeslice = 0x%x\n\r",
    132             BSP_Configuration.ticks_per_timeslice );
    133     printk( "number_of_device_drivers = 0x%x\n\r",
    134             BSP_Configuration.number_of_device_drivers );
    135     printk( "Device_driver_table = 0x%x\n\r",
    136             BSP_Configuration.Device_driver_table );
    137     printk( "work_space_start = 0x%x\n\r",
    138             BSP_Configuration.work_space_start );
     127            rtems_configuration_get_ticks_per_timeslice() );
    139128    printk( "work_space_size = 0x%x\n\r",
    140             BSP_Configuration.work_space_size );
     129            rtems_configuration_get_work_space_size() );
    141130#endif
    142131} /* bsp_start */
  • c/src/lib/libbsp/arm/gp32/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/arm/gp32/include/bsp.h

    rf1c53e8e r4130d8e2  
    3131#include <s3c2400.h>
    3232
    33 extern rtems_configuration_table BSP_Configuration;
    34 
    3533#define gp32_initButtons() {rPBCON=0x0;}
    36 #define gp32_getButtons() ( (((~rPEDAT >> 6) & 0x3 )<<8) | (((~rPBDAT >> 8) & 0xFF)<<0) )
     34#define gp32_getButtons() \
     35    ( (((~rPEDAT >> 6) & 0x3 )<<8) | (((~rPBDAT >> 8) & 0xFF)<<0) )
    3736
    3837/*functions to get the differents s3c2400 clks*/
  • c/src/lib/libbsp/arm/gp32/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    3232unsigned long           free_mem_end;
    3333
    34 /* The original BSP configuration table from the application and our copy of it
    35    with some changes. */
    36 
    37 extern rtems_configuration_table  Configuration;
    38        rtems_configuration_table  BSP_Configuration;
    39 
    40 char            *rtems_progname = "RTEMS";               /* Program name - from main(). */
    41 
    4234/*-------------------------------------------------------------------------+
    4335| External Prototypes
     
    138130
    139131    /* Place RTEMS workspace at beginning of free memory. */
    140     BSP_Configuration.work_space_start = (void *)&_bss_free_start;
    141 
    142     free_mem_start = ((uint32_t)&_bss_free_start + BSP_Configuration.work_space_size);
     132    Configuration.work_space_start = (void *)&_bss_free_start;
     133
     134    free_mem_start = ((uint32_t)&_bss_free_start + rtems_configuration_get_work_space_size());
    143135   
    144136    free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
     
    158150
    159151#if 0
    160     printk( "work_space_size = 0x%x\n", BSP_Configuration.work_space_size );
    161     printk( "maximum_extensions = 0x%x\n", BSP_Configuration.maximum_extensions );
     152    printk( "work_space_size = 0x%x\n",
     153             rtems_configuration_get_work_space_size() );
    162154    printk( "microseconds_per_tick = 0x%x\n",
    163             BSP_Configuration.microseconds_per_tick );
     155            rtems_configuration_get_microseconds_per_tick() );
    164156    printk( "ticks_per_timeslice = 0x%x\n",
    165             BSP_Configuration.ticks_per_timeslice );
    166     printk( "number_of_device_drivers = 0x%x\n",
    167             BSP_Configuration.number_of_device_drivers );
    168     printk( "Device_driver_table = 0x%x\n",
    169             BSP_Configuration.Device_driver_table );
     157            rtems_configuration_get_ticks_per_timeslice() );
    170158   
    171159    printk( "_heap_size = 0x%x\n", _heap_size );
    172160    /*  printk( "_stack_size = 0x%x\n", _stack_size );*/
    173161    printk( "rtemsFreeMemStart = 0x%x\n", rtemsFreeMemStart );
    174     printk( "work_space_start = 0x%x\n", BSP_Configuration.work_space_start );
    175     printk( "work_space_size = 0x%x\n", BSP_Configuration.work_space_size );
     162    printk( "work_space_start = 0x%x\n", Configuration.work_space_start );
     163    printk( "work_space_size = 0x%x\n", rtems_configuration_get_work_space_size() );
    176164#endif
    177165
  • c/src/lib/libbsp/arm/rtl22xx/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/arm/rtl22xx/include/bsp.h

    rf1c53e8e r4130d8e2  
    128128#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
    129129
    130 extern rtems_configuration_table BSP_Configuration;
    131 
    132130/*
    133131 * Network driver configuration
  • c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    4040extern void            *_bss_end_;
    4141
    42 
    4342unsigned long           free_mem_start;
    4443unsigned long           free_mem_end;
    45 
    46 /* The original BSP configuration table from the application and our copy of it
    47    with some changes. */
    48 
    49 extern rtems_configuration_table  Configuration;
    50 rtems_configuration_table  BSP_Configuration;
    51 
    52 char            *rtems_progname;              /* Program name - from main(). */
    5344
    5445/*************************************************************/
     
    116107/*                                                                        */
    117108/* GLOBALS USED:                                                          */
    118 /*    CPU_table                                                    */
    119 /*    BSP_Configuration                                            */
    120 /*    free_mem_start                                               */
    121 /*    free_mem_end                                                 */
    122 /*    free_mem_nocache_start                                       */
    123 /*    _bss_free_start                                              */
    124 /*    mpu_region_tbl                                               */
     109/*    Configuration                                                       */
     110/*    free_mem_start                                                      */
     111/*    free_mem_end                                                        */
     112/*    free_mem_nocache_start                                              */
     113/*    _bss_free_start                                                     */
     114/*    mpu_region_tbl                                                      */
    125115/*                                                                        */
    126116/*                                                                        */
     
    185175
    186176    /* Place RTEMS workspace at beginning of free memory. */
    187     BSP_Configuration.work_space_start = (void *)&_bss_free_start;
     177    Configuration.work_space_start = (void *)&_bss_free_start;
    188178
    189179    free_mem_start = ((uint32_t)&_bss_free_start +
    190                       BSP_Configuration.work_space_size);
     180                      rtems_configuration_get_work_space_size());
    191181
    192182    free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
     
    218208#if 0
    219209
    220     printk( "work_space_size = 0x%x\n", BSP_Configuration.work_space_size );
    221     printk( "maximum_extensions = 0x%x\n", BSP_Configuration.maximum_extensions );
     210    printk( "work_space_size = 0x%x\n",
     211            rtems_configuration_get_work_space_size() );
    222212    printk( "microseconds_per_tick = 0x%x\n",
    223             BSP_Configuration.microseconds_per_tick );
     213            rtems_configuration_get_microseconds_per_tick() );
    224214    printk( "ticks_per_timeslice = 0x%x\n",
    225             BSP_Configuration.ticks_per_timeslice );
    226     printk( "number_of_device_drivers = 0x%x\n",
    227             BSP_Configuration.number_of_device_drivers );
    228     printk( "Device_driver_table = 0x%x\n",
    229             BSP_Configuration.Device_driver_table );
     215            rtems_configuration_get_ticks_per_timeslice() );
    230216
    231217    /*  printk( "_stack_size = 0x%x\n", _stack_size );*/
    232     printk( "work_space_start = 0x%x\n", BSP_Configuration.work_space_start );
    233     printk( "work_space_size = 0x%x\n", BSP_Configuration.work_space_size );
     218    printk( "work_space_start = 0x%x\n", Configuration.work_space_start );
     219    printk( "work_space_size = 0x%x\n", rtems_configuration_get_work_space_size() );
    234220#endif
    235221} /* bsp_start */
  • c/src/lib/libbsp/bfin/eZKit533/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/bfin/eZKit533/include/bsp.h

    rf1c53e8e r4130d8e2  
    9696/* miscellaneous stuff assumed to exist */
    9797
    98 extern rtems_configuration_table BSP_Configuration;
    99 
    10098/*
    10199 *  Device Driver Table Entries
  • c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2626
    2727
    28 /*
    29  *  The original table from the application and our copy of it with
    30  *  some changes.
    31  */
    32 
    33 extern rtems_configuration_table Configuration;
    34 
    35 rtems_configuration_table  BSP_Configuration;
    36 
    37 char *rtems_progname;
    38 
    39 
    4028const unsigned int dcplbs_table[16][2] = { 
    4129        { 0xFFA00000,   (PAGE_SIZE_1MB | CPLB_D_PAGE_MGMT | CPLB_WT) },
     
    156144   */
    157145
    158   BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
     146  Configuration.work_space_start = (void *) &_WorkspaceBase;
    159147
    160148  int i=0;
  • c/src/lib/libbsp/h8300/h8sim/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/h8300/h8sim/include/bsp.h

    rf1c53e8e r4130d8e2  
    4949/* miscellaneous stuff assumed to exist */
    5050
    51 extern rtems_configuration_table BSP_Configuration;
    52 
    5351/*
    5452 *  Device Driver Table Entries
  • c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2020#include <rtems/libio.h>
    2121#include <rtems/libcsupport.h>
    22 
    23 /*
    24  *  The original table from the application and our copy of it with
    25  *  some changes.
    26  */
    27 
    28 extern rtems_configuration_table Configuration;
    29 
    30 rtems_configuration_table  BSP_Configuration;
    31 
    32 char *rtems_progname;
    3322
    3423/*
     
    6049
    6150    heapStart =  (void *)
    62        ((unsigned long)&WorkspaceBase + BSP_Configuration.work_space_size);
     51       ((unsigned long)&WorkspaceBase + rtems_configuration_get_work_space_size());
    6352    if ( (unsigned long) heapStart > (256 * 1024) )
    6453       rtems_fatal_error_occurred (('H'<<24) | ('E'<<16) | ('A'<<8) | 'P');
     
    8372
    8473/*
    85   if ( BSP_Configuration.work_space_size >(512*1024) )
     74  if ( rtems_configuration_get_work_space_size() >(512*1024) )
    8675   _sys_exit( 1 );
    8776*/
    8877
    89   BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
     78  Configuration.work_space_start = (void *) &WorkspaceBase;
    9079}
    9180
  • c/src/lib/libbsp/m68k/av5282/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/m68k/av5282/include/bsp.h

    rf1c53e8e r4130d8e2  
    3939
    4040/* miscellaneous stuff assumed to exist */
    41 
    42 extern rtems_configuration_table BSP_Configuration;
    4341
    4442/*
  • c/src/lib/libbsp/m68k/av5282/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2727#include <string.h>
    2828 
    29 /*
    30  *  The original table from the application and our copy of it with
    31  *  some changes.
    32  */
    33 extern rtems_configuration_table Configuration;
    34 rtems_configuration_table  BSP_Configuration;
    35 char *rtems_progname;
    36 
    3729/*
    3830 * Location of 'VME' access
     
    184176   */
    185177
    186   BSP_Configuration.work_space_start = (void *)_WorkspaceBase;
     178  Configuration.work_space_start = (void *)_WorkspaceBase;
    187179
    188180  /*
  • c/src/lib/libbsp/m68k/csb360/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/m68k/csb360/include/bsp.h

    rf1c53e8e r4130d8e2  
    176176/* miscellaneous stuff assumed to exist */
    177177
    178 extern rtems_configuration_table BSP_Configuration;
    179 
    180178extern m68k_isr_entry M68Kvec[];   /* vector table address */
    181179
  • c/src/lib/libbsp/m68k/csb360/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    3333#include <string.h>
    3434
    35 /*
    36  *  The original table from the application and our copy of it with
    37  *  some changes.
    38  */
    39 
    40 extern rtems_configuration_table Configuration;
    41 rtems_configuration_table  BSP_Configuration;
    42 
    4335extern unsigned int _RamSize;
    44 char *rtems_progname;
    4536
    4637/*
     
    6657     */
    6758
    68     BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
     59    Configuration.work_space_start = (void *)&_WorkspaceBase;
    6960}
  • c/src/lib/libbsp/m68k/mcf5206elite/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h

    rf1c53e8e r4130d8e2  
    206206/* miscellaneous stuff assumed to exist */
    207207
    208 extern rtems_configuration_table BSP_Configuration;
    209 
    210208extern m68k_isr_entry M68Kvec[];   /* vector table address */
    211209
  • c/src/lib/libbsp/m68k/mcf5206elite/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    3333#include <string.h>
    3434
    35 /*
    36  *  The original table from the application and our copy of it with
    37  *  some changes.
    38  */
    39 
    40 extern rtems_configuration_table Configuration;
    41 rtems_configuration_table  BSP_Configuration;
    42 
    4335unsigned long _RamSize;
    44 
    45 char *rtems_progname;
    4636
    4737/*
     
    6656   */
    6757
    68   BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
     58  Configuration.work_space_start = (void *)&_WorkspaceBase;
    6959}
  • c/src/lib/libbsp/m68k/mcf5235/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/m68k/mcf5235/include/bsp.h

    rf1c53e8e r4130d8e2  
    3939
    4040/* miscellaneous stuff assumed to exist */
    41 
    42 extern rtems_configuration_table BSP_Configuration;
    4341
    4442/*
  • c/src/lib/libbsp/m68k/mcf5235/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2727#include <string.h>
    2828 
    29 /*
    30  *  The original table from the application and our copy of it with
    31  *  some changes.
    32  */
    33 extern rtems_configuration_table Configuration;
    34 rtems_configuration_table  BSP_Configuration;
    35 char *rtems_progname;
    36 
    3729/*
    3830 * Cacheable areas
     
    176168   */
    177169
    178   BSP_Configuration.work_space_start = (void *)_WorkspaceBase;
     170  Configuration.work_space_start = (void *)_WorkspaceBase;
    179171
    180172  /*
  • c/src/lib/libbsp/m68k/mvme147s/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/m68k/mvme147s/include/bsp.h

    rf1c53e8e r4130d8e2  
    178178/* miscellaneous stuff assumed to exist */
    179179
    180 extern rtems_configuration_table BSP_Configuration;
    181 
    182180extern m68k_isr_entry M68Kvec[];   /* vector table address */
    183181
  • c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2424#include <rtems/libio.h>
    2525#include <rtems/libcsupport.h>
    26 
    27 /*
    28  *  The original table from the application and our copy of it with
    29  *  some changes.
    30  */
    31 
    32 extern rtems_configuration_table  Configuration;
    33 rtems_configuration_table         BSP_Configuration;
    34 char *rtems_progname;
    3526
    3627/*
     
    141132  rtems_cache_enable_data();
    142133
    143   BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
     134  Configuration.work_space_start = (void *) &_WorkspaceBase;
    144135}
  • c/src/lib/libbsp/m68k/sim68000/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/m68k/sim68000/include/bsp.h

    rf1c53e8e r4130d8e2  
    5353/* miscellaneous stuff assumed to exist */
    5454
    55 extern rtems_configuration_table BSP_Configuration;
    56 
    5755/*
    5856 *  Device Driver Table Entries
  • c/src/lib/libbsp/m68k/sim68000/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2020#include <rtems/libio.h>
    2121#include <rtems/libcsupport.h>
    22 
    23 /*
    24  *  The original table from the application and our copy of it with
    25  *  some changes.
    26  */
    27 
    28 extern rtems_configuration_table Configuration;
    29 rtems_configuration_table  BSP_Configuration;
    30 char *rtems_progname;
    3122
    3223/*
     
    6455
    6556/* XXX address shutdown
    66   if ( BSP_Configuration.work_space_size >(128*1024) )
     57  if ( rtems_configuration_get_work_space_size() >(128*1024) )
    6758   _sys_exit( 1 );
    6859*/
    6960
    70   BSP_Configuration.work_space_start = (void *) &_WorkspaceBase;
     61  Configuration.work_space_start = (void *) &_WorkspaceBase;
    7162}
    7263
  • c/src/lib/libbsp/mips/csb350/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/mips/csb350/include/bsp.h

    rf1c53e8e r4130d8e2  
    6464/* miscellaneous stuff assumed to exist */
    6565
    66 extern rtems_configuration_table BSP_Configuration;
    67 
    6866/*
    6967 *  Device Driver Table Entries
  • c/src/lib/libbsp/mips/csb350/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    3333unsigned long           free_mem_start;
    3434unsigned long           free_mem_end;
    35 
    36 extern rtems_configuration_table Configuration;
    37 rtems_configuration_table  BSP_Configuration;
    38 char *rtems_progname;
    3935
    4036au1x00_uart_t *uart0 = (au1x00_uart_t *)AU1X00_UART0_ADDR;
     
    9490
    9591  /* Place RTEMS workspace at beginning of free memory. */
    96   BSP_Configuration.work_space_start = (void *)&_bss_free_start;
     92  Configuration.work_space_start = (void *)&_bss_free_start;
    9793 
    9894  free_mem_start = ((uint32_t)&_bss_free_start +
    99                     BSP_Configuration.work_space_size);
     95                    rtems_configuration_get_work_space_size());
    10096 
    10197  free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
  • c/src/lib/libbsp/mips/genmongoosev/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/mips/genmongoosev/include/bsp.h

    rf1c53e8e r4130d8e2  
    5555/* miscellaneous stuff assumed to exist */
    5656
    57 extern rtems_configuration_table BSP_Configuration;
    58 
    5957/*
    6058 *  Device Driver Table Entries
  • c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2525#include <rtems/libcsupport.h>
    2626#include <libcpu/mongoose-v.h>
    27 
    28 /*
    29  *  The original table from the application and our copy of it with
    30  *  some changes.
    31  */
    32 
    33 extern rtems_configuration_table Configuration;
    34 rtems_configuration_table  BSP_Configuration;
    35 char *rtems_progname;
    3627
    3728/*
     
    8576
    8677   /* HACK -- tied to value linkcmds */
    87    if ( BSP_Configuration.work_space_size > (4096*1024) )
     78   if ( rtems_configuration_get_work_space_size() > (4096*1024) )
    8879      _sys_exit( 1 );
    8980
    90    BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
     81   Configuration.work_space_start = (void *) &WorkspaceBase;
    9182
    9283   /* mask off any interrupts */
  • c/src/lib/libbsp/mips/hurricane/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/mips/hurricane/include/bsp.h

    rf1c53e8e r4130d8e2  
    8181/* miscellaneous stuff assumed to exist */
    8282
    83 extern rtems_configuration_table BSP_Configuration;
    84 
    8583/*
    8684 *  Device Driver Table Entries
  • c/src/lib/libbsp/mips/hurricane/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2323uint32_t bsp_clicks_per_microsecond;
    2424 
    25 /*
    26  *  The original table from the application and our copy of it with
    27  *  some changes.
    28  */
    29 
    30 extern rtems_configuration_table Configuration;
    31 rtems_configuration_table  BSP_Configuration;
    32 char *rtems_progname;
    33 
    3425/*
    3526 *  Use the shared implementations of the following routines
     
    9788   */
    9889
    99   BSP_Configuration.work_space_start =
     90  Configuration.work_space_start =
    10091       (void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x2000) & ~0x7);
    10192
  • c/src/lib/libbsp/mips/jmr3904/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/mips/jmr3904/include/bsp.h

    rf1c53e8e r4130d8e2  
    3333/* miscellaneous stuff assumed to exist */
    3434
    35 extern rtems_configuration_table BSP_Configuration;
    36 
    3735/*
    3836 *  Device Driver Table Entries
  • c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2020#include <rtems/libio.h>
    2121#include <rtems/libcsupport.h>
    22 
    23 /*
    24  *  The original table from the application and our copy of it with
    25  *  some changes.
    26  */
    27 
    28 extern rtems_configuration_table Configuration;
    29 rtems_configuration_table  BSP_Configuration;
    30 char *rtems_progname;
    3122
    3223/*
     
    7970
    8071  /* HACK -- tied to value linkcmds */
    81   if ( BSP_Configuration.work_space_size >(4096*1024) )
     72  if ( rtems_configuration_get_work_space_size() >(4096*1024) )
    8273   _sys_exit( 1 );
    8374
    84   BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
     75  Configuration.work_space_start = (void *) &WorkspaceBase;
    8576
    8677  mips_set_sr( 0xff00 );  /* all interrupts unmasked but globally off */
  • c/src/lib/libbsp/mips/rbtx4925/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/mips/rbtx4925/include/bsp.h

    rf1c53e8e r4130d8e2  
    5757/* miscellaneous stuff assumed to exist */
    5858
    59 extern rtems_configuration_table BSP_Configuration;
    60 
    6159/*
    6260 *  Device Driver Table Entries
  • c/src/lib/libbsp/mips/rbtx4925/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2424
    2525extern int end; /* defined by linker */
    26 
    27 /*
    28  *  The original table from the application and our copy of it with
    29  *  some changes.
    30  */
    31 
    32 extern rtems_configuration_table Configuration;
    33 rtems_configuration_table  BSP_Configuration;
    34 char *rtems_progname;
    3526
    3627/*
     
    8475  extern void mips_install_isr_entries(void);
    8576
    86   BSP_Configuration.work_space_start =
     77  Configuration.work_space_start =
    8778       (void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x100) & ~0x7);
    8879
  • c/src/lib/libbsp/mips/rbtx4938/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/mips/rbtx4938/include/bsp.h

    rf1c53e8e r4130d8e2  
    5757/* miscellaneous stuff assumed to exist */
    5858
    59 extern rtems_configuration_table BSP_Configuration;
    60 
    6159/*
    6260 *  Device Driver Table Entries
  • c/src/lib/libbsp/mips/rbtx4938/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2424
    2525extern int end; /* defined by linker */
    26 
    27 /*
    28  *  The original table from the application and our copy of it with
    29  *  some changes.
    30  */
    31 
    32 extern rtems_configuration_table Configuration;
    33 rtems_configuration_table  BSP_Configuration;
    34 char *rtems_progname;
    3526
    3627/*
     
    8475  extern void mips_install_isr_entries(void);
    8576
    86   BSP_Configuration.work_space_start =
     77  Configuration.work_space_start =
    8778       (void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x100) & ~0x7);
    8879
  • c/src/lib/libbsp/powerpc/ep1a/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-08      Till Straumann <strauman@slac.stanford.edu>
    28
  • c/src/lib/libbsp/powerpc/ep1a/include/bsp.h

    rf1c53e8e r4130d8e2  
    187187  asm(" eieio ")
    188188
    189 extern rtems_configuration_table  BSP_Configuration;
    190189extern void BSP_panic(char *s);
    191190extern void rtemsReboot(void);
  • c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    125125}
    126126 
    127 /*
    128  *  The original table from the application and our copy of it with
    129  *  some changes.
    130  */
    131 
    132 extern rtems_configuration_table Configuration;
    133 rtems_configuration_table  BSP_Configuration;
    134 char *rtems_progname;
    135 
    136127int BSP_FLASH_Disable_writes(
    137128  uint32_t    area
     
    207198    heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
    208199
    209   heap_size = (BSP_mem_size - heap_start) - BSP_Configuration.work_space_size;
     200  heap_size = (BSP_mem_size - heap_start) - rtems_configuration_get_work_space_size();
    210201
    211202  heap_sbrk_spared=_bsp_sbrk_init(heap_start, &heap_size);
     
    447438
    448439#ifdef SHOW_MORE_INIT_SETTINGS
    449   printk("BSP_Configuration.work_space_size = %x\n", BSP_Configuration.work_space_size);
     440  printk("rtems_configuration_get_work_space_size() = %x\n",
     441     rtems_configuration_get_work_space_size());
    450442#endif 
    451443  work_space_start =
    452     (unsigned char *)BSP_mem_size - BSP_Configuration.work_space_size;
     444    (unsigned char *)BSP_mem_size - rtems_configuration_get_work_space_size();
    453445
    454446  if ( work_space_start <= ((unsigned char *)__rtems_end) +
     
    458450  }
    459451
    460   BSP_Configuration.work_space_start = work_space_start;
     452  Configuration.work_space_start = work_space_start;
    461453
    462454  /*
  • c/src/lib/libbsp/powerpc/gen83xx/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-05      Till Straumann <strauman@slac.stanford.edu>
    28
  • c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h

    rf1c53e8e r4130d8e2  
    198198/* miscellaneous stuff assumed to exist */
    199199
    200 extern rtems_configuration_table BSP_Configuration;
    201200/*
    202201 * We need to decide how much memory will be non-cacheable. This
  • c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    3939SPR_RW(SPRG1)
    4040
    41 /*
    42  *  The original table from the application (in ROM) and our copy of it with
    43  *  some changes. Configuration is defined in <confdefs.h>. Make sure that
    44  *  our configuration tables are uninitialized so that they get allocated in
    45  *  the .bss section (RAM).
    46  */
    47 extern rtems_configuration_table Configuration;
    4841extern unsigned long intrStackPtr;
    49 rtems_configuration_table  BSP_Configuration;
    5042static char *BSP_heap_start, *BSP_heap_end;
    51 char *rtems_progname;
    5243
    5344/*
     
    157148   * - Heap ends at end of memory - reserved memory area
    158149   */
    159   BSP_Configuration.work_space_start = _WorkspaceBase;
    160 
    161   BSP_heap_start = ((char *)BSP_Configuration.work_space_start +
    162                     BSP_Configuration.work_space_size);
     150  Configuration.work_space_start = _WorkspaceBase;
     151
     152  BSP_heap_start = ((char *)Configuration.work_space_start +
     153                    rtems_configuration_get_work_space_size());
    163154
    164155#if defined(HAS_UBOOT)
  • c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/powerpc/mpc8260ads/include/bsp.h

    rf1c53e8e r4130d8e2  
    6464/* miscellaneous stuff assumed to exist */
    6565
    66 extern rtems_configuration_table BSP_Configuration;
    6766/*
    6867 * We need to decide how much memory will be non-cacheable. This
  • c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    6161SPR_RW(SPRG1)
    6262
    63 /*
    64  *  The original table from the application (in ROM) and our copy of it with
    65  *  some changes. Configuration is defined in <confdefs.h>. Make sure that
    66  *  our configuration tables are uninitialized so that they get allocated in
    67  *  the .bss section (RAM).
    68  */
    69 extern rtems_configuration_table Configuration;
    7063extern unsigned long intrStackPtr;
    71 rtems_configuration_table  BSP_Configuration;
    72 char *rtems_progname;
    7364
    7465/*
     
    290281   */
    291282
    292   BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
     283  Configuration.work_space_start = (void *)&_WorkspaceBase;
    293284
    294285  /*
     
    325316   */
    326317
    327   m8xx_uart_reserve_resources(&BSP_Configuration);
     318  m8xx_uart_reserve_resources(&Configuration);
    328319
    329320/*
  • c/src/lib/libbsp/powerpc/mvme5500/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-10      Till Straumann <strauman@slac.stanford.edu>
    28
  • c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h

    rf1c53e8e r4130d8e2  
    101101  ((unsigned long long) ((((unsigned long long)BSP_time_base_divisor) * 1000000ULL) /((unsigned long long) BSP_bus_frequency)) * ((unsigned long long) (_value)))
    102102
    103 extern rtems_configuration_table  BSP_Configuration;
    104103extern void BSP_panic(char *s);
    105104extern void rtemsReboot(void);
  • c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    144144}
    145145 
    146 /*
    147  *  The original table from the application and our copy of it with
    148  *  some changes.
    149  */
    150 
    151 extern rtems_configuration_table Configuration;
    152 rtems_configuration_table  BSP_Configuration;
    153 char *rtems_progname;
    154 
    155146/*
    156147 *  Use the shared implementations of the following routines
     
    404395
    405396  printk(
    406     "BSP_Configuration.work_space_size = %x\n",
    407      BSP_Configuration.work_space_size
     397    "rtems_configuration_get_work_space_size() = %x\n",
     398     rtems_configuration_get_work_space_size()
    408399  );
    409400
    410401  work_space_start =
    411     (unsigned char *)BSP_mem_size - BSP_Configuration.work_space_size;
     402    (unsigned char *)BSP_mem_size - rtems_configuration_get_work_space_size();
    412403
    413404  if ( work_space_start <= ((unsigned char *)__rtems_end) + INIT_STACK_SIZE +
     
    417408  }
    418409
    419   BSP_Configuration.work_space_start = work_space_start;
     410  Configuration.work_space_start = work_space_start;
    420411
    421412  /*
  • c/src/lib/libbsp/powerpc/score603e/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-08      Till Straumann <strauman@slac.stanford.edu>
    28
  • c/src/lib/libbsp/powerpc/score603e/include/bsp.h

    rf1c53e8e r4130d8e2  
    221221  ( ((_data&0x00ff)<<8) | ((_data&0xff00)>>8) )
    222222
    223 extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
    224 extern uint32_t                  bsp_isr_level;
    225 
    226223#endif /* ASM */
    227224
  • c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    4343uint32_t   bsp_clicks_per_usec;
    4444
    45 /*
    46  *  The original table from the application and our copy of it with
    47  *  some changes.
    48  */
    49 
    50 extern rtems_configuration_table  Configuration;
    51 rtems_configuration_table         BSP_Configuration;
    52 uint32_t                          bsp_isr_level;
    53 
    5445void BSP_panic(char *s)
    5546{
     
    8980    heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
    9081
    91   heap_size = BSP_Configuration.work_space_start - (void *)&end;
     82  heap_size = Configuration.work_space_start - (void *)&end;
    9283  heap_size &= 0xfffffff0;  /* keep it as a multiple of 16 bytes */
    9384
     
    296287
    297288  work_space_start =
    298     (unsigned char *)&RAM_END - BSP_Configuration.work_space_size;
     289    (unsigned char *)&RAM_END - rtems_configuration_get_work_space_size();
    299290
    300291  if ( work_space_start <= (unsigned char *)&end ) {
     
    303294  }
    304295
    305   BSP_Configuration.work_space_start = work_space_start;
     296  Configuration.work_space_start = work_space_start;
    306297
    307298  /*
  • c/src/lib/libbsp/powerpc/ss555/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/powerpc/ss555/include/bsp.h

    rf1c53e8e r4130d8e2  
    7878/* miscellaneous stuff assumed to exist */
    7979
    80 extern rtems_configuration_table BSP_Configuration;
    81 
    8280/*
    8381 *  Device Driver Table Entries
  • c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    4040SPR_RW(SPRG1)
    4141
    42 /*
    43  *  The original table from the application (in ROM) and our copy of it with
    44  *  some changes. Configuration is defined in <confdefs.h>. Make sure that
    45  *  our configuration tables are uninitialized so that they get allocated in
    46  *  the .bss section (RAM).
    47  */
    48 extern rtems_configuration_table Configuration;
    4942extern unsigned long intrStackPtr;
    50 rtems_configuration_table  BSP_Configuration;
    51 char *rtems_progname;
    5243
    5344/*
     
    10596   */
    10697    uint8_t *_HeapStart =
    107       (uint8_t *)BSP_Configuration.work_space_start
    108            + BSP_Configuration.work_space_size;
     98      (uint8_t *)Configuration.work_space_start
     99           + rtems_configuration_get_work_space_size();
    109100    extern uint8_t _HeapEnd[];
    110101
     
    175166   *  "pulled from the air".
    176167   */
    177   BSP_Configuration.work_space_start = _WorkspaceBase;
     168  Configuration.work_space_start = _WorkspaceBase;
    178169
    179170  /*
     
    186177   * Call this in case we use TERMIOS for console I/O
    187178   */
    188   m5xx_uart_reserve_resources( &BSP_Configuration );
     179  m5xx_uart_reserve_resources( &Configuration );
    189180
    190181  /*
  • c/src/lib/libbsp/sh/gensh1/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/sh/gensh1/include/bsp.h

    rf1c53e8e r4130d8e2  
    7171/* miscellaneous stuff assumed to exist */
    7272
    73 extern rtems_configuration_table BSP_Configuration;
    74 
    7573extern void bsp_cleanup( void );
    7674
  • c/src/lib/libbsp/sh/gensh1/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    3232
    3333uint32_t bsp_clicks_per_second;
    34 
    35 /*
    36  *  The original table from the application and our copy of it with
    37  *  some changes.
    38  */
    39 
    40 extern rtems_configuration_table Configuration;
    41 rtems_configuration_table  BSP_Configuration;
    42 char *rtems_progname;
    4334
    4435/*
     
    10192   */
    10293
    103   BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ;
    104   BSP_Configuration.work_space_size  =
     94  Configuration.work_space_start = (void *) &WorkSpaceStart ;
     95  rtems_configuration_get_work_space_size()  =
    10596    (uint32_t) &WorkSpaceEnd -
    10697    (uint32_t) &WorkSpaceStart ;
  • c/src/lib/libbsp/sh/gensh2/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/sh/gensh2/include/bsp.h

    rf1c53e8e r4130d8e2  
    8787/* miscellaneous stuff assumed to exist */
    8888
    89 extern rtems_configuration_table BSP_Configuration;
    90 
    9189extern void bsp_cleanup( void );
    9290
  • c/src/lib/libbsp/sh/gensh2/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    3333uint32_t bsp_clicks_per_second;
    3434
    35 /*
    36  *  The original table from the application and our copy of it with
    37  *  some changes.
    38  */
    39 
    4035extern void bsp_hw_init(void);
    41 extern rtems_configuration_table Configuration;
    42 rtems_configuration_table  BSP_Configuration;
    43 char *rtems_progname;
    4436
    4537/*
     
    10799   */
    108100
    109   BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ;
    110   BSP_Configuration.work_space_size  =
     101  Configuration.work_space_start = (void *) &WorkSpaceStart ;
     102  rtems_configuration_get_work_space_size()  =
    111103    &WorkSpaceEnd - &WorkSpaceStart ;
    112104
  • c/src/lib/libbsp/sh/gensh4/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/sh/gensh4/include/bsp.h

    rf1c53e8e r4130d8e2  
    8383/* miscellaneous stuff assumed to exist */
    8484
    85 extern rtems_configuration_table BSP_Configuration;
    86 
    8785extern void bsp_cleanup( void );
    8886
  • c/src/lib/libbsp/sh/gensh4/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    3434uint32_t bsp_clicks_per_second;
    3535
    36 /*
    37  *  The original table from the application and our copy of it with
    38  *  some changes.
    39  */
    40 
    4136extern void bsp_hw_init(void);
    42 extern rtems_configuration_table Configuration;
    43 rtems_configuration_table  BSP_Configuration;
    44 char *rtems_progname;
    4537
    4638/*
     
    108100   */
    109101
    110   BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ;
    111   BSP_Configuration.work_space_size  =
     102  Configuration.work_space_start = (void *) &WorkSpaceStart ;
     103  rtems_configuration_get_work_space_size()  =
    112104    (uint32_t) &WorkSpaceEnd -
    113105    (uint32_t) &WorkSpaceStart ;
  • c/src/lib/libbsp/sh/shsim/ChangeLog

    rf1c53e8e r4130d8e2  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * include/bsp.h, startup/bspstart.c: Eliminate copies of the
     4        Configuration Table. Use the RTEMS provided accessor macros to obtain
     5        configuration fields.
     6
    172007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/sh/shsim/include/bsp.h

    rf1c53e8e r4130d8e2  
    6767/* miscellaneous stuff assumed to exist */
    6868
    69 extern rtems_configuration_table BSP_Configuration;
    70 
    7169extern void bsp_cleanup( void );
    7270
  • c/src/lib/libbsp/sh/shsim/startup/bspstart.c

    rf1c53e8e r4130d8e2  
    2929
    3030uint32_t bsp_clicks_per_second;
    31 
    32 /*
    33  *  The original table from the application and our copy of it with
    34  *  some changes.
    35  */
    36 
    37 extern rtems_configuration_table Configuration;
    38 rtems_configuration_table  BSP_Configuration;
    39 char *rtems_progname;
    4031
    4132/*
     
    9889   */
    9990
    100   BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ;
    101   BSP_Configuration.work_space_size  =
     91  Configuration.work_space_start = (void *) &WorkSpaceStart ;
     92  rtems_configuration_get_work_space_size()  =
    10293    (uint32_t) &WorkSpaceEnd -
    10394    (uint32_t) &WorkSpaceStart ;
Note: See TracChangeset for help on using the changeset viewer.