diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-25 08:40:20 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-27 10:33:30 +0100 |
commit | cbc433c7a25dbe19414f70edc64f9de1f630a117 (patch) | |
tree | 8d53c70658b82b052f0c5c81e7a025548a147aea /c/src/lib/libbsp/arm/shared/startup | |
parent | rtems: Add rtems_cache_coherent_allocate() (diff) | |
download | rtems-cbc433c7a25dbe19414f70edc64f9de1f630a117.tar.bz2 |
bsps/arm: Add .nocache section
This section can be use to provide a cache coherent memory area via
rtems_cache_coherent_add_area().
Diffstat (limited to 'c/src/lib/libbsp/arm/shared/startup')
-rw-r--r-- | c/src/lib/libbsp/arm/shared/startup/linkcmds.base | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/shared/startup/linkcmds.base b/c/src/lib/libbsp/arm/shared/startup/linkcmds.base index 268e88a858..8a653e9337 100644 --- a/c/src/lib/libbsp/arm/shared/startup/linkcmds.base +++ b/c/src/lib/libbsp/arm/shared/startup/linkcmds.base @@ -397,6 +397,19 @@ SECTIONS { } > REGION_STACK AT > REGION_STACK bsp_section_stack_size = bsp_section_stack_end - bsp_section_stack_begin; + .nocache : ALIGN_WITH_INPUT { + bsp_section_nocache_begin = .; + *(SORT(.bsp_nocache*)) + bsp_nocache_heap_begin = .; + . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.); + bsp_nocache_heap_end = .; + bsp_section_nocache_end = .; + } > REGION_NOCACHE AT > REGION_NOCACHE_LOAD + bsp_nocache_heap_size = bsp_nocache_heap_end - bsp_nocache_heap_begin; + bsp_section_nocache_size = bsp_section_nocache_end - bsp_section_nocache_begin; + bsp_section_nocache_load_begin = LOADADDR (.nocache); + bsp_section_nocache_load_end = bsp_section_nocache_load_begin + bsp_section_nocache_size; + /* FIXME */ RamBase = ORIGIN (REGION_WORK); RamSize = LENGTH (REGION_WORK); |