Changeset d11d1d2a in rtems


Ignore:
Timestamp:
Dec 11, 2007, 3:46:53 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
4b39acf
Parents:
f6821c3
Message:

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

  • README, 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/powerpc
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen405/ChangeLog

    rf6821c3 rd11d1d2a  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * README, 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/gen405/README

    rf6821c3 rd11d1d2a  
    4545Board description
    4646-----------------
    47 clock rate:     234 MHz
    48 ROM:            16MByte FLASH
    49 RAM:            64MByte DRAM
     47clock rate:234 MHz
     48ROM:       16 MByte FLASH
     49RAM:       64 MByte DRAM
    5050
    5151gen405 only supports single processor operations.
     
    6161
    6262- c/src/lib/libbsp/powerpc/gen405/startup/linkcmds
    63         for the memory layout required
     63        for the memory layout required
    6464
    6565- c/src/lib/libbsp/powerpc/gen405/startup/bspstart.c
    66         for adaption of BSP_Configuration. here you can select
    67         the clock source for the timers and the serial interface
    68         (system clock or external clock pin), the clock rates, initial
    69         baud rate and other stuff
     66        Here you can select the clock source for the timers and the
     67        serial interface (system clock or external clock pin), the clock
     68        rates, initial baud rate and other stuff
    7069
    7170- c/src/lib/libbsp/powerpc/gen405/include/bsp.h
    72         some BSP-related constants
     71        some BSP-related constants
    7372
    7473The actual drivers are placed in
    7574- c/src/lib/libcpu/powerpc/ppc403/*
    76         well, they should be generic, so there _should_ be no reason
    77         to mess around there (but who knows...)
     75        well, they should be generic, so there _should_ be no reason
     76        to mess around there (but who knows...)
    7877
    7978
  • c/src/lib/libbsp/powerpc/gen405/include/bsp.h

    rf6821c3 rd11d1d2a  
    6868/* miscellaneous stuff assumed to exist */
    6969
    70 extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
    71 
    7270/*
    7371 *  Device Driver Table Entries
  • c/src/lib/libbsp/powerpc/gen405/startup/bspstart.c

    rf6821c3 rd11d1d2a  
    6565#include <ictrl.h>
    6666
    67 /*
    68  *  The original table from the application and our copy of it with
    69  *  some changes.
    70  */
    71 
    72 extern rtems_configuration_table Configuration;
    73 rtems_configuration_table  BSP_Configuration;
    74 char *rtems_progname;
    7567void *bsp_ram_end = (void *)RAM_END;  /* first addr behind avail. ram area */
    7668
     
    176168      or must be a function call
    177169   */
    178   BSP_Configuration.work_space_start = (void *)
    179       ((char *)(bsp_ram_end)) - BSP_Configuration.work_space_size;
     170  Configuration.work_space_start = (void *)
     171      ((char *)(bsp_ram_end)) - rtems_configuration_get_work_space_size();
    180172
    181173  /*
  • c/src/lib/libbsp/powerpc/helas403/ChangeLog

    rf6821c3 rd11d1d2a  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * README, 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/helas403/README

    rf6821c3 rd11d1d2a  
    4646Board description
    4747-----------------
    48 clock rate:     25 MHz
    49 bus width:      8-bit PROM, 32-bit DRAM
    50 ROM:            Up to 512KByte (Am29F040), 90 nsec chip select 0
    51 RAM:            4 to 32 MByte DRAM SIMM (autodetect), 70 nsec,
    52                 no parity, at CS7 or CS6+CS7 (for two-bank-SIMMs)
     48clock rate:   25 MHz
     49bus width:    8-bit PROM, 32-bit DRAM
     50ROM:          Up to 512KByte (Am29F040), 90 nsec chip select 0
     51RAM:          4 to 32 MByte DRAM SIMM (autodetect), 70 nsec,
     52              no parity, at CS7 or CS6+CS7 (for two-bank-SIMMs)
    5353
    5454
     
    6363- Direct start from Flash after powerup (with code run out of flash):
    6464  This is the default configuration, it uses the files
    65         flashentry/flashentry.s
    66         startup/linkcmds
     65    flashentry/flashentry.s
     66    startup/linkcmds
    6767
    6868 Please note, that this configuration is good to startup the system,
     
    7272- Start after software download into DRAM:
    7373  This configuration will use:
    74         dlentry/dlentry.s
    75         startup/linkcmds.dl
     74    dlentry/dlentry.s
     75    startup/linkcmds.dl
    7676
    7777If you want to use the download configuration, it is sufficient to
     
    8585
    8686- c/src/lib/libbsp/powerpc/helas403/flashentry/flashentry.s
    87         for the memory controller configuration and other basic stuff
     87        for the memory controller configuration and other basic stuff
    8888
    8989- c/src/lib/libbsp/powerpc/helas403/startup/linkcmds[.dl]
    90         for the memory layout required
     90        for the memory layout required
    9191
    9292- c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c
    93         for adaption of BSP_Configuration. here you can select
    94         the clock source for the timers and the serial interface
    95         (system clock or external clock pin), the clock rates, initial
    96         baud rate and other stuff
     93        Here you can select the clock source for the timers and the serial
     94        interface (system clock or external clock pin), the clock rates,
     95        initial baud rate and other stuff
    9796
    9897- c/src/lib/libbsp/powerpc/helas403/include/bsp.h
    99         some BSP-related constants
     98        some BSP-related constants
    10099
    101100The actual drivers are placed in
    102101- c/src/lib/libcpu/powerpc/ppc403/*
    103         well, they should be generic, so there _should_ be no reason
    104         to mess around there (but who knows...)
     102        well, they should be generic, so there _should_ be no reason
     103        to mess around there (but who knows...)
    105104
    106105
  • c/src/lib/libbsp/powerpc/helas403/include/bsp.h

    rf6821c3 rd11d1d2a  
    6565/* miscellaneous stuff assumed to exist */
    6666
    67 extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
    68 
    6967/*
    7068 *  Device Driver Table Entries
  • c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c

    rf6821c3 rd11d1d2a  
    6363#include <ictrl.h>
    6464
    65 /*
    66  *  The original table from the application and our copy of it with
    67  *  some changes.
    68  */
    69 
    70 extern rtems_configuration_table Configuration;
    71 rtems_configuration_table  BSP_Configuration;
    72 char *rtems_progname;
    7365void *bsp_ram_end = (void *)RAM_END;  /* first addr behind avail. ram area */
    7466
     
    166158      or must be a function call
    167159   */
    168   BSP_Configuration.work_space_start = (void *)
    169       ((char *)(bsp_ram_end)) - BSP_Configuration.work_space_size;
     160  Configuration.work_space_start = (void *)
     161      ((char *)(bsp_ram_end)) - rtems_configuration_get_work_space_size();
    170162
    171163  /*
  • c/src/lib/libbsp/powerpc/virtex/ChangeLog

    rf6821c3 rd11d1d2a  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * README, 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/virtex/README

    rf6821c3 rd11d1d2a  
    7777
    7878- c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c
    79         for adaption of BSP_Configuration. here you can select
    80         the clock source for the timers and the serial interface
    81         (system clock or external clock pin), the clock rates, initial
    82         baud rate and other stuff
     79        Here you can select the clock source for the timers and the
     80        serial interface (system clock or external clock pin), the clock
     81        rates, initial baud rate and other stuff
    8382
    8483- c/src/lib/libbsp/powerpc/virtex/include/bsp.h
  • c/src/lib/libbsp/powerpc/virtex/include/bsp.h

    rf6821c3 rd11d1d2a  
    7373/* miscellaneous stuff assumed to exist */
    7474
    75 extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
    76 
    77 
    7875/* Network Defines */
    7976#if 1 /* EB/doe changes */
  • c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c

    rf6821c3 rd11d1d2a  
    7474#include <stdio.h>
    7575
    76 /*
    77  *  The original table from the application and our copy of it with
    78  *  some changes.
    79  */
    80 
    81 extern rtems_configuration_table Configuration;
    82 rtems_configuration_table  BSP_Configuration;
    83 
    84 char *rtems_progname;
    85 
    8676uint32_t _heap_start;
    8777uint32_t _heap_end;
     
    151141    /* round up from the top of workspace to next 64k boundary, get
    152142     * default heapsize from linker script  */
    153     heap_start = (((uint32_t)BSP_Configuration.work_space_start +
    154                    BSP_Configuration.work_space_size) + 0x18000) & 0xffff0000;
     143    heap_start = (((uint32_t)Configuration.work_space_start +
     144                   rtems_configuration_get_work_space_size()) + 0x18000) & 0xffff0000;
    155145
    156146    heap_end = _heap_start + (uint32_t)&_HeapSize;
     
    255245
    256246    /* round _end up to next 64k boundary for start of workspace */
    257     BSP_Configuration.work_space_start = (void *)((((uint32_t)&_end) + 0x18000) & 0xffff0000);
     247    Configuration.work_space_start = (void *)((((uint32_t)&_end) + 0x18000) & 0xffff0000);
    258248  }
    259249
Note: See TracChangeset for help on using the changeset viewer.