Changeset 113768f in rtems


Ignore:
Timestamp:
Nov 23, 2012, 1:16:11 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
bb3090c5
Parents:
95aebbe
git-author:
Sebastian Huber <sebastian.huber@…> (11/23/12 13:16:11)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/03/12 12:17:12)
Message:

bsps/powerpc: Add .nvram section

Location:
c/src/lib/libbsp/powerpc
Files:
12 edited

Legend:

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

    r95aebbe r113768f  
    2323REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    2424REGION_ALIAS ("REGION_NOCACHE_LOAD", NOCACHE);
     25REGION_ALIAS ("REGION_NVRAM", NOCACHE);
    2526
    2627INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5566evb

    r95aebbe r113768f  
    2323REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    2424REGION_ALIAS ("REGION_NOCACHE_LOAD", NOCACHE);
     25REGION_ALIAS ("REGION_NVRAM", NOCACHE);
    2526
    2627INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5643l_evb

    r95aebbe r113768f  
    2929REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    3030REGION_ALIAS ("REGION_NOCACHE_LOAD", NOCACHE);
     31REGION_ALIAS ("REGION_NVRAM", NOCACHE);
    3132
    3233INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508

    r95aebbe r113768f  
    33        RAM_EXT : ORIGIN = 0x20000000, LENGTH = 512K
    44        NOCACHE : ORIGIN = 0x4003c000, LENGTH = 16k
     5        NVRAM : ORIGIN = 0x3ffa0000, LENGTH = 128k
    56}
    67
     
    2223REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    2324REGION_ALIAS ("REGION_NOCACHE_LOAD", ROM);
     25REGION_ALIAS ("REGION_NVRAM", NVRAM);
    2426
    2527INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674fevb

    r95aebbe r113768f  
    44        RAM_EXT : ORIGIN = 0x20000000, LENGTH = 512K
    55        NOCACHE : ORIGIN = 0x4003c000, LENGTH = 16k
     6        EMPTY : ORIGIN = 0x0, LENGTH = 0
    67}
    78
     
    2324REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    2425REGION_ALIAS ("REGION_NOCACHE_LOAD", ROM);
     26REGION_ALIAS ("REGION_NVRAM", EMPTY);
    2527
    2628INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.phycore_mpc5554

    r95aebbe r113768f  
    3232REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    3333REGION_ALIAS ("REGION_NOCACHE_LOAD", NOCACHE);
     34REGION_ALIAS ("REGION_NVRAM", NOCACHE);
    3435
    3536INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/qoriq/startup/linkcmds.qoriq_core_0

    r95aebbe r113768f  
    88        LOW : ORIGIN = 0x4000, LENGTH = 16M - 16k
    99        HIGH : ORIGIN = 0x1000000, LENGTH = 32M
     10        EMPTY : ORIGIN = 0x0, LENGTH = 0
    1011}
    1112
     
    2526REGION_ALIAS ("REGION_WORK", HIGH);
    2627REGION_ALIAS ("REGION_STACK", HIGH);
    27 REGION_ALIAS ("REGION_NOCACHE", HIGH);
    28 REGION_ALIAS ("REGION_NOCACHE_LOAD", HIGH);
     28REGION_ALIAS ("REGION_NOCACHE", EMPTY);
     29REGION_ALIAS ("REGION_NOCACHE_LOAD", EMPTY);
     30REGION_ALIAS ("REGION_NVRAM", EMPTY);
    2931
    3032bsp_section_robarrier_align = 0x1000000;
  • c/src/lib/libbsp/powerpc/qoriq/startup/linkcmds.qoriq_core_1

    r95aebbe r113768f  
    77MEMORY {
    88        RAM : ORIGIN = 0x4000000, LENGTH = 64M
     9        EMPTY : ORIGIN = 0x0, LENGTH = 0
    910}
    1011
     
    2425REGION_ALIAS ("REGION_WORK", RAM);
    2526REGION_ALIAS ("REGION_STACK", RAM);
    26 REGION_ALIAS ("REGION_NOCACHE", RAM);
    27 REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM);
     27REGION_ALIAS ("REGION_NOCACHE", EMPTY);
     28REGION_ALIAS ("REGION_NOCACHE_LOAD", EMPTY);
     29REGION_ALIAS ("REGION_NVRAM", EMPTY);
    2830
    2931bsp_section_robarrier_align = 0x1000000;
  • c/src/lib/libbsp/powerpc/qoriq/startup/linkcmds.qoriq_p1020rdb

    r95aebbe r113768f  
    88        LOW : ORIGIN = 0x4000, LENGTH = 16M - 16k
    99        HIGH : ORIGIN = 0x1000000, LENGTH = 32M
     10        EMPTY : ORIGIN = 0x0, LENGTH = 0
    1011}
    1112
     
    2526REGION_ALIAS ("REGION_WORK", HIGH);
    2627REGION_ALIAS ("REGION_STACK", HIGH);
    27 REGION_ALIAS ("REGION_NOCACHE", HIGH);
    28 REGION_ALIAS ("REGION_NOCACHE_LOAD", HIGH);
     28REGION_ALIAS ("REGION_NOCACHE", EMPTY);
     29REGION_ALIAS ("REGION_NOCACHE_LOAD", EMPTY);
     30REGION_ALIAS ("REGION_NVRAM", EMPTY);
    2931
    3032bsp_section_robarrier_align = 0x1000000;
  • c/src/lib/libbsp/powerpc/shared/include/linker-symbols.h

    r95aebbe r113768f  
    100100LINKER_SYMBOL(bsp_section_nocache_load_end)
    101101
     102LINKER_SYMBOL(bsp_section_nvram_begin)
     103LINKER_SYMBOL(bsp_section_nvram_end)
     104LINKER_SYMBOL(bsp_section_nvram_size)
     105
    102106#define BSP_FAST_TEXT_SECTION __attribute__((section(".bsp_fast_text")))
    103107
     
    105109
    106110#define BSP_NOCACHE_SECTION __attribute__((section(".bsp_nocache")))
     111
     112#define BSP_NVRAM_SECTION __attribute__((section(".bsp_nvram")))
    107113
    108114/** @} */
  • c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base

    r95aebbe r113768f  
    340340        bsp_section_nocache_load_begin = LOADADDR (.nocache);
    341341        bsp_section_nocache_load_end = bsp_section_nocache_load_begin + bsp_section_nocache_size;
     342
     343        .nvram (NOLOAD) : {
     344                bsp_section_nvram_begin = .;
     345                *(SORT(.bsp_nvram*))
     346                bsp_section_nvram_end = .;
     347        } > REGION_NVRAM
     348        bsp_section_nvram_size = bsp_section_nvram_end - bsp_section_nvram_begin;
    342349
    343350        /* FIXME */
  • c/src/lib/libbsp/powerpc/t32mppc/startup/linkcmds.t32mppc

    r95aebbe r113768f  
    11MEMORY {
    22        RAM : ORIGIN = 0x0, LENGTH = 128M
     3        EMPTY : ORIGIN = 0x0, LENGTH = 0
    34}
    45
     
    2021REGION_ALIAS ("REGION_NOCACHE", RAM);
    2122REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM);
     23REGION_ALIAS ("REGION_NVRAM", EMPTY);
    2224
    2325INCLUDE linkcmds.base
Note: See TracChangeset for help on using the changeset viewer.