Changeset 29919ec0 in rtems


Ignore:
Timestamp:
Nov 23, 2012, 2:12:41 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
f4309b0
Parents:
65ab304
git-author:
Sebastian Huber <sebastian.huber@…> (11/23/12 14:12:41)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/03/12 12:17:12)
Message:

bsp/mpc55xx: Add .sysram section

Location:
c/src/lib/libbsp/powerpc/mpc55xxevb
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h

    r65ab304 r29919ec0  
    8888#define BSP_DSRAM_SECTION __attribute__((section(".bsp_dsram")))
    8989
     90LINKER_SYMBOL(bsp_section_sysram_begin)
     91LINKER_SYMBOL(bsp_section_sysram_end)
     92LINKER_SYMBOL(bsp_section_sysram_size)
     93LINKER_SYMBOL(bsp_section_sysram_load_begin)
     94LINKER_SYMBOL(bsp_section_sysram_load_end)
     95
     96#define BSP_SYSRAM_SECTION __attribute__((section(".bsp_sysram")))
     97
    9098typedef enum {
    9199  MPC55XX_FATAL_FMPLL_LOCK
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508

    r65ab304 r29919ec0  
    11MEMORY {
    22        DSROM : ORIGIN = 0x00020000, LENGTH = 64k
     3        SYSROM : ORIGIN = 0x00100000, LENGTH = 4k
    34        RAM : ORIGIN = 0x40000000, LENGTH = 240k
    45        NOCACHE : ORIGIN = 0x4003c000, LENGTH = 16k
    56        DSRAM : ORIGIN = 0x20000000, LENGTH = 64k
    6         RAM_EXT : ORIGIN = 0x20010000, LENGTH = 448k
     7        RAM_EXT : ORIGIN = 0x20010000, LENGTH = 444k
     8        SYSRAM : ORIGIN = 0x2007f000, LENGTH = 4k
    79        NVRAM : ORIGIN = 0x3ffa0000, LENGTH = 128k
    810}
     
    3638        bsp_section_dsram_load_begin = LOADADDR (.dsram);
    3739        bsp_section_dsram_load_end = bsp_section_dsram_load_begin + bsp_section_dsram_size;
     40
     41        .sysram : {
     42                bsp_section_sysram_begin = .;
     43                *(SORT(.bsp_sysram*))
     44                bsp_section_sysram_end = .;
     45        } > SYSRAM AT > SYSROM
     46        bsp_section_sysram_size = bsp_section_sysram_end - bsp_section_sysram_begin;
     47        bsp_section_sysram_load_begin = LOADADDR (.sysram);
     48        bsp_section_sysram_load_end = bsp_section_sysram_load_begin + bsp_section_sysram_size;
    3849}
    3950
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508_app

    r65ab304 r29919ec0  
    11MEMORY {
    22        /* Let space for the binary image library header */
    3         ROM : ORIGIN = 0x00100000, LENGTH = 3M - 4k
     3        ROM : ORIGIN = 0x00101000, LENGTH = 3064k
    44}
    55
Note: See TracChangeset for help on using the changeset viewer.