Ignore:
Timestamp:
Jun 11, 2008, 8:03:50 AM (12 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
56e8ee4e
Parents:
3aac2db
Message:

2008-06-10 Matthew Riek <matthew.riek@…>

  • Makefile.am: Add shared/m68kbspgetworkarea.c to sources.
  • configure.ac: Add RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION.
  • include/bsp.h: Add include bspopts.h.
  • start/start.S: Formatting changes.
  • startup/bspstart.c: Updated to use the shared BSP support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mcf5235/startup/bspstart.c

    r3aac2db rb7ad0ed  
    135135
    136136/*
    137  *  Use the shared implementations of the following routines
    138  */
    139 void bsp_libc_init( void *, uint32_t, int );
    140 void bsp_pretasking_hook(void);                 /* m68k version */
    141 
    142 /*
    143137 *  bsp_start
    144138 *
     
    147141void bsp_start( void )
    148142{
    149   extern char _WorkspaceBase[];
    150   extern char _RamSize[];
    151   extern unsigned long  _M68k_Ramsize;
    152 
    153   _M68k_Ramsize = (unsigned long)_RamSize;              /* RAM size set in linker script */
    154 
    155   /*
    156    *  Allocate the memory for the RTEMS Work Space.  This can come from
    157    *  a variety of places: hard coded address, malloc'ed from outside
    158    *  RTEMS world (e.g. simulator or primitive memory manager), or (as
    159    *  typically done by stock BSPs) by subtracting the required amount
    160    *  of work space from the last physical address on the CPU board.
    161    */
    162 
    163   /*
    164    *  Need to "allocate" the memory for the RTEMS Workspace and
    165    *  tell the RTEMS configuration where it is.  This memory is
    166    *  not malloc'ed.  It is just "pulled from the air".
    167    */
    168 
    169   Configuration.work_space_start = (void *)_WorkspaceBase;
    170 
    171143  /*
    172144   * Invalidate the cache and disable it
Note: See TracChangeset for help on using the changeset viewer.