Changeset cc1f623 in rtems


Ignore:
Timestamp:
Sep 16, 2008, 7:05:15 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
1c79f01
Parents:
2d6932a
Message:

2008-09-16 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.
Location:
c/src/lib/libbsp/powerpc/tqm8xx
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog

    r2d6932a rcc1f623  
     12008-09-16      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, startup/bspstart.c: Split out bsp_get_work_area() into
     4        its own file and use BSP Framework to perform more initialization.
     5        * startup/bspgetworkarea.c: New file.
     6
    172008-09-09      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
    28
  • c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am

    r2d6932a rcc1f623  
    5757startup_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
    5858    ../../shared/bsppost.c ../../shared/bsppredriverhook.c \
    59     startup/bspstart.c ../../shared/bootcard.c \
    60     startup/mmutlbtab.c startup/cpuinit.c \
    61     ../../shared/sbrk.c ../../shared/gnatinstallhandler.c
     59    ../../shared/bsppretaskinghook.c startup/bspstart.c \
     60    startup/bspgetworkarea.c ../../shared/bootcard.c startup/mmutlbtab.c \
     61    startup/cpuinit.c ../../shared/sbrk.c ../../shared/gnatinstallhandler.c
    6262
    6363if HAS_NETWORKING
  • c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c

    r2d6932a rcc1f623  
    2121 */
    2222
    23 #include <string.h>
    24 
    25 #include <rtems/libio.h>
    26 #include <rtems/libcsupport.h>
    27 #include <rtems/score/thread.h>
     23#include <rtems.h>
    2824
    2925#include <libcpu/powerpc-utility.h>
     
    8278}
    8379
    84 void bsp_pretasking_hook( void)
    85 {
    86   /* Do noting */
    87 }
    88 
    8980const char *bsp_tqm_get_cib_string( const char *cib_id)
    9081{
     
    131122  *result = strtoul(item_ptr,&end_ptr,10);
    132123  return RTEMS_SUCCESSFUL;
    133 }
    134 
    135 void bsp_get_work_area( void **work_area_start, size_t *work_area_size, void **heap_start, size_t *heap_size)
    136 {
    137   char *ram_end = (char *) (TQM_BD_INFO.sdram_size - (uint32_t)TopRamReserved);
    138 
    139   *work_area_start = bsp_work_area_start;
    140   *work_area_size = ram_end - bsp_work_area_start;
    141   *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
    142   *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
    143124}
    144125
Note: See TracChangeset for help on using the changeset viewer.