Ignore:
Timestamp:
Sep 16, 2008, 7:03:28 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.