Changeset 71c00c56 in rtems


Ignore:
Timestamp:
Sep 16, 2008, 7:01:46 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
4601f3dc
Parents:
c818a7f
Message:

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

  • clock/clock.c, startup/bspstart.c, startup/linkcmds: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization.
  • startup/bspgetworkarea.c: New file.
Location:
c/src/lib/libbsp/c4x/c4xsim
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/c4x/c4xsim/ChangeLog

    rc818a7f r71c00c56  
     12008-09-16      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * clock/clock.c, startup/bspstart.c, startup/linkcmds: Add use of
     4        bsp_get_work_area() in its own file and rely on BSP Framework to
     5        perform more initialization.
     6        * startup/bspgetworkarea.c: New file.
     7
    182008-09-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • c/src/lib/libbsp/c4x/c4xsim/clock/clock.c

    rc818a7f r71c00c56  
    1616
    1717#include <rtems.h>
    18 #include <rtems/libio.h>
    1918#include <bsp.h>
    2019#include <rtems/tic4x/c4xio.h>
  • c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c

    rc818a7f r71c00c56  
    1515 */
    1616
    17 #include <string.h>
    18 
    1917#include <bsp.h>
    20 #include <rtems/libio.h>
    21 #include <rtems/libcsupport.h>
    2218
    2319/*
     
    2521 */
    2622
    27 void bsp_libc_init( void *, uint32_t, int );
    2823extern void bsp_spurious_initialize();
    2924
     
    3732void bsp_pretasking_hook(void)
    3833{
    39   extern void      *_HeapStart;
    40   extern uint32_t   _HeapSize;
    41 
    42   bsp_libc_init(&_HeapStart, (unsigned int) &_HeapSize, 0);
    43 
    4434  bsp_spurious_initialize();
    4535}
     
    5949void bsp_start( void )
    6050{
    61   extern void     *_WorkspaceBase;
    62   extern uint32_t _WorkspaceMax;
    63 
    64   Configuration.work_space_start = (void *)&_WorkspaceBase;
    65   /* XXX check to see if satisfying small memory model */
    66 
    67   if ( rtems_configuration_get_work_space_size() > (int) &_WorkspaceMax )
    68     rtems_fatal_error_occurred( 0x43218765 );
    69 
    7051  BSP_output_char = C4X_BSP_output_char;
    7152  BSP_poll_char = (BSP_polling_getchar_function_type) NULL;
  • c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds

    rc818a7f r71c00c56  
    11/* OUTPUT_FORMAT("coff-c4x") */
    2  __SYSMEM_SIZE = DEFINED(__SYSMEM_SIZE) ? __SYSMEM_SIZE : 0x4000;
    32 __STACK_SIZE  = DEFINED(__STACK_SIZE)  ? __STACK_SIZE  : 0x1000;
    4  __HeapSize = DEFINED(__HeapSize) ? __HeapSize : 0x10000;
    5  __WorkspaceMax = DEFINED(__WorkspaceMax) ? __WorkspaceMax : 256K;
    63 __ClockFrequency = DEFINED(_ClockFrequency) ? _ClockFrequency : 50;
     4
     5_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
     6_RamSize = DEFINED(_RamSize) ? _RamSize : 4M;
     7
    78ENTRY(_start)
    89SECTIONS
     
    6566  .heap  :
    6667  {                                     
    67     __HeapStart = .;
    68     . += __HeapSize;
    69     __WorkspaceBase = .;
    70     . += __WorkspaceMax;
     68    _WorkspaceBase = .;
    7169  }
    7270/*
Note: See TracChangeset for help on using the changeset viewer.