Ignore:
Timestamp:
Sep 16, 2008, 7:06:45 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
dcc905b
Parents:
a196084
Message:

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

  • Makefile.am, startup/bspstart.c: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. Remove unnecessary includes of rtems/libio.h and rtems/libcsupport.h.
  • startup/bspgetworkarea.c: New file.
File:
1 edited

Legend:

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

    ra196084 re76068d  
    2424
    2525#include <rtems.h>
    26 #include <rtems/bspIo.h>
    27 #include <rtems/libcsupport.h>
    2826
    2927#include <libcpu/powerpc-utility.h>
     
    4442
    4543/* Symbols defined in linker command file */
    46 LINKER_SYMBOL( bsp_ram_start);
    47 LINKER_SYMBOL( bsp_ram_end);
    48 LINKER_SYMBOL( bsp_external_ram_start);
    49 LINKER_SYMBOL( bsp_external_ram_size);
    50 LINKER_SYMBOL( bsp_section_bss_end);
     44LINKER_SYMBOL(bsp_ram_start);
     45LINKER_SYMBOL(bsp_ram_end);
     46LINKER_SYMBOL(bsp_external_ram_start);
     47LINKER_SYMBOL(bsp_external_ram_size);
     48LINKER_SYMBOL(bsp_section_bss_end);
    5149
    5250unsigned int bsp_clock_speed = 0;
     
    7876                /* Do nothing */
    7977        }
    80 }
    81 
    82 void bsp_get_work_area( void **work_area_start, size_t *work_area_size, void **heap_start, size_t *heap_size)
    83 {
    84         *work_area_start = bsp_section_bss_end;
    85         *work_area_size = bsp_ram_end - 2 * MPC55XX_INTERRUPT_STACK_SIZE - bsp_section_bss_end;
    86         *heap_start = bsp_external_ram_start;
    87         *heap_size = (size_t) bsp_external_ram_size;
    8878}
    8979
     
    194184        /* Initialize exceptions */
    195185        DEBUG_PRINT( "Initialize exceptions ...\n");
    196         ppc_exc_initialize( PPC_INTERRUPT_DISABLE_MASK_DEFAULT, interrupt_stack_start, interrupt_stack_size);
     186        ppc_exc_initialize(
     187          PPC_INTERRUPT_DISABLE_MASK_DEFAULT,
     188          interrupt_stack_start,
     189          interrupt_stack_size
     190        );
    197191        DEBUG_DONE();
    198192
Note: See TracChangeset for help on using the changeset viewer.