Skip to content
Permalink
Browse files

arch: common: nocache: fix linker section definition

No-cache SRAM section is currently used for ARM-only builds
with support for no-cacheable memory sections (i.e.
CONFIG_ARCH_HAS_NOCACHE_MEMORY_SUPPORT) and it holds
uninitialized data. This commit properly defines the
corresponding linker section using SECTION_DATA_PROLOGUE
and GROUP_DATA_LINK_IN macros.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
  • Loading branch information...
ioannisg authored and andrewboie committed Jun 19, 2019
1 parent 8004082 commit 6cbc0e0bd97cf2a821d3a7280e805cad1073932b
Showing with 2 additions and 2 deletions.
  1. +2 −2 arch/common/nocache.ld
@@ -8,13 +8,13 @@
/* Copied from linker.ld */

/* Non-cached region of RAM */
SECTION_PROLOGUE(_NOCACHE_SECTION_NAME,(NOLOAD),)
SECTION_DATA_PROLOGUE(_NOCACHE_SECTION_NAME,(NOLOAD),)
{
MPU_ALIGN(_nocache_ram_size);
_nocache_ram_start = .;
*(.nocache)
*(".nocache.*")
MPU_ALIGN(_nocache_ram_size);
_nocache_ram_end = .;
} GROUP_LINK_IN(RAMABLE_REGION)
} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
_nocache_ram_size = _nocache_ram_end - _nocache_ram_start;

0 comments on commit 6cbc0e0

Please sign in to comment.
You can’t perform that action at this time.