Changeset b1ded240 in rtems for c/src


Ignore:
Timestamp:
Sep 16, 2008, 7:03:28 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
9b0c089
Parents:
7b18d2f
Message:

2008-09-16 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, startup/bspstart.c, startup/linkcmds, startup/linkcmdsflash, startup/linkcmdsram: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. Remove unnecessary includes of rtems/libio.h and rtems/libcsupport.h.
Location:
c/src/lib/libbsp/m68k
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/av5282/ChangeLog

    r7b18d2f rb1ded240  
     12008-09-16      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, startup/bspstart.c, startup/linkcmds,
     4        startup/linkcmdsflash, startup/linkcmdsram: Add use of
     5        bsp_get_work_area() in its own file and rely on BSP Framework to
     6        perform more initialization. Remove unnecessary includes of
     7        rtems/libio.h and rtems/libcsupport.h.
     8
    192008-09-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • c/src/lib/libbsp/m68k/av5282/Makefile.am

    r7b18d2f rb1ded240  
    2828startup_SOURCES = startup/bspclean.c ../../shared/bsppredriverhook.c \
    2929    ../../shared/bsplibc.c ../../shared/bsppost.c \
    30     ../../m68k/shared/m68kpretaskinghook.c \
     30    ../../shared/bsppretaskinghook.c ../../m68k/shared/m68kbspgetworkarea.c \
    3131    startup/init5282.c startup/bspstart.c \
    3232    ../../shared/bootcard.c \
  • c/src/lib/libbsp/m68k/av5282/configure.ac

    r7b18d2f rb1ded240  
    2020AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    2121
     22RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     23
    2224# Explicitly list all Makefiles here
    2325AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/m68k/av5282/startup/bspstart.c

    r7b18d2f rb1ded240  
    2323
    2424#include <bsp.h>
    25 #include <rtems/libio.h>
    26 #include <rtems/libcsupport.h>
    2725#include <string.h>
    2826 
    29 /*
    30  * Location of 'VME' access
    31  */
    32 #define VME_ONE_BASE    0x30000000
    33 #define VME_TWO_BASE    0x31000000
    34 
    3527/*
    3628 * Cacheable areas
     
    143135
    144136/*
    145  *  These are used by bsp_start
    146  */
    147 extern char _WorkspaceBase[];
    148 extern char _RamSize[];
    149 extern unsigned long  _M68k_Ramsize;
    150 
    151 /*
    152137 *  bsp_start
    153138 *
     
    156141void bsp_start( void )
    157142{
    158   _M68k_Ramsize = (unsigned long)_RamSize;    /* RAM size set in linker script */
    159 
    160   /*
    161    *  Allocate the memory for the RTEMS Work Space.  This can come from
    162    *  a variety of places: hard coded address, malloc'ed from outside
    163    *  RTEMS world (e.g. simulator or primitive memory manager), or (as
    164    *  typically done by stock BSPs) by subtracting the required amount
    165    *  of work space from the last physical address on the CPU board.
    166    */
    167 
    168   /*
    169    *  Need to "allocate" the memory for the RTEMS Workspace and
    170    *  tell the RTEMS configuration where it is.  This memory is
    171    *  not malloc'ed.  It is just "pulled from the air".
    172    */
    173 
    174   Configuration.work_space_start = (void *)_WorkspaceBase;
    175 
    176143  /*
    177144   * Invalidate the cache and disable it
  • c/src/lib/libbsp/m68k/av5282/startup/linkcmds

    r7b18d2f rb1ded240  
    1616 * Declare some sizes.
    1717 */
    18 _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0 ;
    19 _RamSize = DEFINED(_RamSize) ? _RamSize : 16M ;
    20 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0 ;
     18_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
     19_RamSize = DEFINED(_RamSize) ? _RamSize : 16M;
     20_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0;
    2121_VBR = 0x0;
    2222
  • c/src/lib/libbsp/m68k/av5282/startup/linkcmdsflash

    r7b18d2f rb1ded240  
    1616 * Declare some sizes.
    1717 */
    18 _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0 ;
    19 _RamSize = DEFINED(_RamSize) ? _RamSize : 16M ;
    20 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0 ;
     18_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
     19_RamSize = DEFINED(_RamSize) ? _RamSize : 16M;
     20_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0;
    2121_VBR = 0x0;
    2222
  • c/src/lib/libbsp/m68k/av5282/startup/linkcmdsram

    r7b18d2f rb1ded240  
    1616 * Declare some sizes.
    1717 */
    18 _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0 ;
    19 _RamSize = DEFINED(_RamSize) ? _RamSize : 16M ;
    20 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0 ;
     18_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
     19_RamSize = DEFINED(_RamSize) ? _RamSize : 16M;
     20_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0;
    2121_VBR = 0x0;
    2222
  • c/src/lib/libbsp/m68k/mcf5235/ChangeLog

    r7b18d2f rb1ded240  
     12008-09-16      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, startup/bspstart.c, startup/linkcmds,
     4        startup/linkcmdsflash, startup/linkcmdsram: Add use of
     5        bsp_get_work_area() in its own file and rely on BSP Framework to
     6        perform more initialization. Remove unnecessary includes of
     7        rtems/libio.h and rtems/libcsupport.h.
     8
    192008-09-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • c/src/lib/libbsp/m68k/mcf5235/Makefile.am

    r7b18d2f rb1ded240  
    2929startup_SOURCES = startup/bspclean.c ../../shared/bsppredriverhook.c \
    3030    ../../shared/bsplibc.c ../../shared/bsppost.c \
    31     ../../m68k/shared/m68kpretaskinghook.c \
    32     ../../m68k/shared/m68kbspgetworkarea.c \
    33     startup/init5235.c startup/bspstart.c \
    34     ../../shared/bootcard.c \
     31    ../../shared/bsppretaskinghook.c ../../m68k/shared/m68kbspgetworkarea.c \
     32    startup/init5235.c startup/bspstart.c ../../shared/bootcard.c \
    3533    ../../shared/sbrk.c ../../m68k/shared/setvec.c \
    3634    ../../shared/gnatinstallhandler.c
  • c/src/lib/libbsp/m68k/mcf5235/configure.ac

    r7b18d2f rb1ded240  
    2222AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    2323
     24RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     25
    2426# Explicitly list all Makefiles here
    2527AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/m68k/mcf5235/startup/bspstart.c

    r7b18d2f rb1ded240  
    2323
    2424#include <bsp.h>
    25 #include <rtems/libio.h>
    26 #include <rtems/libcsupport.h>
    27 #include <string.h>
    2825 
    2926/*
     
    162159}
    163160
     161extern char _CPUClockSpeed[];
     162
    164163uint32_t get_CPU_clock_speed(void)
    165164{
    166   extern char _CPUClockSpeed[];
    167165  return( (uint32_t)_CPUClockSpeed);
    168166}
  • c/src/lib/libbsp/m68k/mcf5235/startup/linkcmds

    r7b18d2f rb1ded240  
    2323 * Declare some sizes.
    2424 */
    25 _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0 ;
    26 _RamSize = DEFINED(_RamSize) ? _RamSize : 16M ;
    27 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0 ;
     25_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
     26_RamSize = DEFINED(_RamSize) ? _RamSize : 16M;
     27_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0;
    2828
    2929
  • c/src/lib/libbsp/m68k/mcf5235/startup/linkcmdsflash

    r7b18d2f rb1ded240  
    2323 * Declare some sizes.
    2424 */
    25 _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0 ;
    26 _RamSize = DEFINED(_RamSize) ? _RamSize : 16M ;
    27 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0 ;
     25_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
     26_RamSize = DEFINED(_RamSize) ? _RamSize : 16M;
     27_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0;
    2828
    2929
  • c/src/lib/libbsp/m68k/mcf5235/startup/linkcmdsram

    r7b18d2f rb1ded240  
    2323 * Declare some sizes.
    2424 */
    25 _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0 ;
    26 _RamSize = DEFINED(_RamSize) ? _RamSize : 16M ;
    27 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0 ;
     25_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
     26_RamSize = DEFINED(_RamSize) ? _RamSize : 16M;
     27_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0;
    2828
    2929
Note: See TracChangeset for help on using the changeset viewer.