Changeset 28b6765d in rtems


Ignore:
Timestamp:
Sep 15, 2008, 12:23:55 AM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
4fcb2f17
Parents:
b4a52b1
Message:

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

  • Makefile.am, startup/bspstart.c: Use shared bsp_get_work_area() into its own file and use BSP Framework to perform more initialization.
Location:
c/src/lib/libbsp/sparc/leon3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/ChangeLog

    rb4a52b1 r28b6765d  
     12008-09-14      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, startup/bspstart.c: Use shared bsp_get_work_area() into
     4        its own file and use BSP Framework to perform more initialization.
     5
    162008-09-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/sparc/leon3/Makefile.am

    rb4a52b1 r28b6765d  
    3535
    3636startup_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
    37     ../../shared/bsppost.c startup/bspstart.c \
    38     ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
     37    ../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \
     38    ../../sparc/shared/bspgetworkarea.c ../../shared/sbrk.c startup/setvec.c \
    3939    startup/spurious.c startup/ithread.S
    4040
  • c/src/lib/libbsp/sparc/leon3/startup/bspstart.c

    rb4a52b1 r28b6765d  
    2020
    2121
    22 #include <string.h>
    23 
    2422#include <bsp.h>
    25 #include <bsp/bootcard.h>
    2623#include <rtems/bspIo.h>
    27 
    28 /* must be identical to STACK_SIZE in start.S */
    29 #define STACK_SIZE 16 * 1024
    30 
    31 /*
    32  *  Tells us where to put the workspace in case remote debugger is present.
    33  */
    34 extern uint32_t rdb_start;
    3524
    3625/*
     
    7160
    7261/*
    73  *  This method returns the base address and size of the area which
    74  *  is to be allocated between the RTEMS Workspace and the C Program
    75  *  Heap.
    76  */
    77 void bsp_get_work_area(
    78   void   **work_area_start,
    79   size_t  *work_area_size,
    80   void   **heap_start,
    81   size_t  *heap_size
    82 )
    83 {
    84   /* Tells us where to put the workspace in case remote debugger is present.  */
    85   extern uint32_t rdb_start;
    86 
    87   *work_area_start       = &end;
    88   *work_area_size       = (void *)rdb_start - (void *)&end - STACK_SIZE;
    89   *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
    90   *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
    91 }
    92 
    93 /*
    9462 *  bsp_start
    9563 *
Note: See TracChangeset for help on using the changeset viewer.