Ignore:
Timestamp:
Sep 14, 2008, 9:38:25 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
e95cf8c9
Parents:
63c08c0
Message:

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

  • Makefile.am, startup/bspstart.c: Split out bsp_get_work_area() into its own file and use BSP Framework to perform more initialization.
  • startup/bspgetworkarea.c: New file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c

    r63c08c0 r6a39cd4  
    1717#include <bsp.h>
    1818#include <bsp/bootcard.h>
    19 
    20 /*
    21  *  This method returns the base address and size of the area which
    22  *  is to be allocated between the RTEMS Workspace and the C Program
    23  *  Heap.
    24  */
    25 void bsp_get_work_area(
    26   void   **work_area_start,
    27   size_t  *work_area_size,
    28   void   **heap_start,
    29   size_t  *heap_size
    30 )
    31 {
    32   extern int WorkspaceBase;
    33   extern int end;
    34 
    35   *work_area_start       = &WorkspaceBase;
    36   *work_area_size       = (void *)&end - (void *)&WorkspaceBase;
    37   *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
    38   *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
    39 }
    4019
    4120/*
     
    6241
    6342/* Structure filled in by get_mem_info.  Only the size field is
    64    actually used (to clear bss), so the others aren't even filled in.  */
     43 * actually used (to clear bss), so the others aren't even filled in.
     44 */
    6545
    6646struct s_mem
Note: See TracChangeset for help on using the changeset viewer.