Changeset 53c99b8 in rtems


Ignore:
Timestamp:
Oct 28, 2015, 9:18:05 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
9fa93710
Parents:
e96feeb
git-author:
Sebastian Huber <sebastian.huber@…> (10/28/15 09:18:05)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/28/15 12:04:19)
Message:

bsps: Generalize .nocacheheap to .nocachenoload

Add ability to place data in a non-loadable cache-inhibited area.

Location:
c/src/lib/libbsp
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h

    re96feeb r53c99b8  
    8686    .flags = ARMV7_MMU_DEVICE \
    8787  }, { \
    88     .begin = (uint32_t) bsp_section_nocacheheap_begin, \
    89     .end = (uint32_t) bsp_section_nocacheheap_end, \
     88    .begin = (uint32_t) bsp_section_nocachenoload_begin, \
     89    .end = (uint32_t) bsp_section_nocachenoload_end, \
    9090    .flags = ARMV7_MMU_DEVICE \
    9191  }
  • c/src/lib/libbsp/arm/shared/include/linker-symbols.h

    re96feeb r53c99b8  
    120120LINKER_SYMBOL(bsp_section_nocache_load_end)
    121121
     122LINKER_SYMBOL(bsp_section_nocachenoload_begin)
     123LINKER_SYMBOL(bsp_section_nocachenoload_end)
     124LINKER_SYMBOL(bsp_section_nocachenoload_size)
     125
    122126LINKER_SYMBOL(bsp_section_nocacheheap_begin)
    123127LINKER_SYMBOL(bsp_section_nocacheheap_end)
     
    141145#define BSP_NOCACHE_SECTION __attribute__((section(".bsp_nocache")))
    142146
     147#define BSP_NOCACHENOLOAD_SECTION __attribute__((section(".bsp_noload_nocache")))
     148
    143149LINKER_SYMBOL(bsp_processor_count)
    144150
  • c/src/lib/libbsp/arm/shared/startup/linkcmds.base

    re96feeb r53c99b8  
    407407        bsp_section_nocache_load_end = bsp_section_nocache_load_begin + bsp_section_nocache_size;
    408408
    409         .nocacheheap (NOLOAD) : ALIGN_WITH_INPUT {
     409        .nocachenoload (NOLOAD) : ALIGN_WITH_INPUT {
     410                bsp_section_nocachenoload_begin = .;
     411                *(SORT(.bsp_noload_nocache*))
    410412                bsp_section_nocacheheap_begin = .;
    411413                . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.);
    412414                bsp_section_nocacheheap_end = .;
     415                bsp_section_nocachenoload_end = .;
    413416        } > REGION_NOCACHE AT > REGION_NOCACHE
    414417        bsp_section_nocacheheap_size = bsp_section_nocacheheap_end - bsp_section_nocacheheap_begin;
     418        bsp_section_nocachenoload_size = bsp_section_nocachenoload_end - bsp_section_nocachenoload_begin;
    415419
    416420        /* FIXME */
  • c/src/lib/libbsp/powerpc/qoriq/startup/mmu-config.c

    re96feeb r53c99b8  
    112112        ENTRY_RW(bsp_section_stack_begin, bsp_section_stack_size),
    113113        ENTRY_IO(bsp_section_nocache_begin, bsp_section_nocache_size),
    114         ENTRY_IO(bsp_section_nocacheheap_begin, bsp_section_nocacheheap_size),
     114        ENTRY_IO(bsp_section_nocachenoload_begin, bsp_section_nocachenoload_size),
    115115#if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
    116116        /* BMan Portals */
  • c/src/lib/libbsp/powerpc/shared/include/linker-symbols.h

    re96feeb r53c99b8  
    100100LINKER_SYMBOL(bsp_section_nocache_load_end)
    101101
     102LINKER_SYMBOL(bsp_section_nocachenoload_begin)
     103LINKER_SYMBOL(bsp_section_nocachenoload_end)
     104LINKER_SYMBOL(bsp_section_nocachenoload_size)
     105
    102106LINKER_SYMBOL(bsp_section_nocacheheap_begin)
    103107LINKER_SYMBOL(bsp_section_nocacheheap_end)
     
    114118#define BSP_NOCACHE_SECTION __attribute__((section(".bsp_nocache")))
    115119
     120#define BSP_NOCACHENOLOAD_SECTION __attribute__((section(".bsp_noload_nocache")))
     121
    116122#define BSP_NVRAM_SECTION __attribute__((section(".bsp_nvram")))
    117123
  • c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base

    re96feeb r53c99b8  
    343343        bsp_section_nocache_load_end = bsp_section_nocache_load_begin + bsp_section_nocache_size;
    344344
    345         .nocacheheap (NOLOAD) : ALIGN_WITH_INPUT {
     345        .nocachenoload (NOLOAD) : ALIGN_WITH_INPUT {
     346                bsp_section_nocachenoload_begin = .;
     347                *(SORT(.bsp_noload_nocache*))
    346348                bsp_section_nocacheheap_begin = .;
    347349                . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.);
    348350                bsp_section_nocacheheap_end = .;
     351                bsp_section_nocachenoload_end = .;
    349352        } > REGION_NOCACHE AT > REGION_NOCACHE
    350353        bsp_section_nocacheheap_size = bsp_section_nocacheheap_end - bsp_section_nocacheheap_begin;
     354        bsp_section_nocachenoload_size = bsp_section_nocachenoload_end - bsp_section_nocachenoload_begin;
    351355
    352356        .nvram (NOLOAD) : ALIGN_WITH_INPUT {
Note: See TracChangeset for help on using the changeset viewer.