Changeset da890759 in rtems


Ignore:
Timestamp:
Sep 28, 2012, 1:36:26 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
2ece571e
Parents:
c118a6e5
git-author:
Sebastian Huber <sebastian.huber@…> (09/28/12 13:36:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/25/12 12:54:06)
Message:

bsp/mpc55xx: Add custom work area init

Location:
c/src/lib/libbsp/powerpc/mpc55xxevb
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am

    rc118a6e5 rda890759  
    6565libbsp_a_SOURCES += ../../shared/bsppost.c
    6666libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    67 libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
     67libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
    6868libbsp_a_SOURCES += ../../shared/src/stackalloc.c
    6969libbsp_a_SOURCES += ../shared/src/bsp-start-zero.S
     
    7171libbsp_a_SOURCES += ../shared/src/tictac.c
    7272libbsp_a_SOURCES += startup/bspstart.c
     73libbsp_a_SOURCES += startup/bspworkareainit.c
    7374libbsp_a_SOURCES += startup/exc-vector-base.S
    7475libbsp_a_SOURCES += startup/get-system-clock.c
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c

    rc118a6e5 rda890759  
    4141#include <bsp/start.h>
    4242#include <bsp/mpc55xx-config.h>
    43 
    44 extern Heap_Control *RTEMS_Malloc_Heap;
    4543
    4644/* Symbols defined in linker command file */
     
    143141        #endif
    144142}
    145 
    146 void bsp_pretasking_hook(void)
    147 {
    148         #if MPC55XX_CHIP_FAMILY == 564
    149                 _Heap_Extend(
    150                         RTEMS_Malloc_Heap,
    151                         bsp_section_rwextra_end,
    152                         (uintptr_t) bsp_ram_end
    153                                 - (uintptr_t) bsp_section_rwextra_end,
    154                         NULL
    155                 );
    156         #endif
    157 }
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5566evb

    rc118a6e5 rda890759  
    1919REGION_ALIAS ("REGION_BSS", RAM_EXT);
    2020REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
    21 REGION_ALIAS ("REGION_WORK", RAM_EXT);
     21REGION_ALIAS ("REGION_WORK", RAM);
    2222REGION_ALIAS ("REGION_STACK", RAM);
    2323REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc55xx

    rc118a6e5 rda890759  
    77bsp_rom_end = bsp_rom_start + bsp_rom_size;
    88
    9 bsp_external_ram_start = ORIGIN (RAM_EXT);
    10 bsp_external_ram_size = LENGTH (RAM_EXT);
    11 bsp_external_ram_end = bsp_external_ram_start + bsp_external_ram_size;
     9INCLUDE linkcmds.base
    1210
    13 INCLUDE linkcmds.base
     11SECTIONS {
     12        .work_bonus : {
     13                /*
     14                 * This section will occupy the remaining RAM_EXT region and may
     15                 * contain parts of the RTEMS work space and heap.
     16                 */
     17                bsp_section_work_bonus_begin = .;
     18                . += ORIGIN (RAM_EXT) + LENGTH (RAM_EXT) - ABSOLUTE (.);
     19                bsp_section_work_bonus_end = .;
     20        } > RAM_EXT AT > RAM_EXT
     21        bsp_section_work_bonus_size = bsp_section_work_bonus_end - bsp_section_work_bonus_begin;
     22}
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5643l_evb

    rc118a6e5 rda890759  
    33        RAM : ORIGIN = 0x40000000, LENGTH = 64K
    44        RAM_1 : ORIGIN = 0x50000000, LENGTH = 64K
    5         RAM_EXT : ORIGIN = 0x0, LENGTH = 0
    65        NOCACHE : ORIGIN = 0x0, LENGTH = 0
    76}
     7
     8REGION_ALIAS ("RAM_EXT", RAM);
    89
    910bsp_ram_1_start = ORIGIN (RAM_1);
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508_app

    rc118a6e5 rda890759  
    2121REGION_ALIAS ("REGION_BSS", RAM);
    2222REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
    23 REGION_ALIAS ("REGION_WORK", RAM_EXT);
     23REGION_ALIAS ("REGION_WORK", RAM);
    2424REGION_ALIAS ("REGION_STACK", RAM);
    2525REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508_boot

    rc118a6e5 rda890759  
    1919REGION_ALIAS ("REGION_BSS", RAM);
    2020REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
    21 REGION_ALIAS ("REGION_WORK", RAM_EXT);
     21REGION_ALIAS ("REGION_WORK", RAM);
    2222REGION_ALIAS ("REGION_STACK", RAM);
    2323REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674fevb

    rc118a6e5 rda890759  
    1919REGION_ALIAS ("REGION_BSS", RAM);
    2020REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
    21 REGION_ALIAS ("REGION_WORK", RAM_EXT);
     21REGION_ALIAS ("REGION_WORK", RAM);
    2222REGION_ALIAS ("REGION_STACK", RAM);
    2323REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
Note: See TracChangeset for help on using the changeset viewer.