Ignore:
Timestamp:
Jul 24, 2008, 2:52:55 PM (12 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
de3864e
Parents:
075d817
Message:

Changed bsp_get_workarea() to bsp_get_work_area() and
added support for an optional separate heap area.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/startup/bspstart.c

    r075d817 rd4886a06  
    1919#include <bsp.h>
    2020#include <bsp/irq.h>
     21#include <bsp/bootcard.h>
    2122#include <rtems/libio.h>
    2223#include <rtems/libcsupport.h>
     
    7172 *  Heap.
    7273 */
    73 void bsp_get_workarea(
    74   void   **workarea_base,
    75   size_t  *workarea_size,
    76   size_t  *requested_heap_size
     74void bsp_get_work_area(
     75  void   **work_area_start,
     76  size_t  *work_area_size,
     77  void   **heap_start,
     78  size_t  *heap_size
    7779)
    7880{
    79   *workarea_base       = &end;
    80   *workarea_size       = (void *)&RAM_END - (void *)&end;
    81   *requested_heap_size = 0;
     81  *work_area_start       = &end;
     82  *work_area_size       = (void *)&RAM_END - (void *)&end;
     83  *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
     84  *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
    8285}
    8386
Note: See TracChangeset for help on using the changeset viewer.