memory: port SPIRAM noinit segment support to master

This commit is contained in:
Armando
2021-07-27 16:12:45 +08:00
committed by Armando (Dou Yiwen)
parent a542f1b67d
commit ad8e1a395c
9 changed files with 48 additions and 164 deletions

View File

@@ -1,14 +0,0 @@
/* This section is only included if CONFIG_SPIRAM_ALLOW_NOINIT_EXTERNAL_MEMORY
is set, to link some NOINIT sections in PSRAM */
SECTIONS
{
/* external memory bss, from any global variable with EXT_RAM_NOINIT_ATTR attribute*/
.ext_ram.noinit (NOLOAD) :
{
_ext_ram_noinit_start = ABSOLUTE(.);
*(.ext_ram.noinit*)
. = ALIGN(4);
_ext_ram_noinit_end = ABSOLUTE(.);
} > extern_ram_seg
}

View File

@@ -197,6 +197,18 @@ SECTIONS
. = ALIGN(4);
} > dram0_0_seg
/**
* This section holds data that won't be initialised when startup.
* This section locates in External RAM region.
*/
.ext_ram.noinit (NOLOAD) :
{
_ext_ram_noinit_start = ABSOLUTE(.);
*(.ext_ram.noinit*)
. = ALIGN(4);
_ext_ram_noinit_end = ABSOLUTE(.);
} > extern_ram_seg
/*This section holds data that should not be initialized at power up.
The section located in Internal SRAM memory region. The macro _NOINIT
can be used as attribute to place data into this section.