linker: Add dtcm section for Cortex M7 MCUs
This commit adds a DTCM (Device Tightly Coupled Memory) section for Cortex F7 MCUs. The Address and length is defined in the corresponding device tree file. Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
This commit is contained in:
parent
1f046f9943
commit
b4c5f4b32b
7 changed files with 85 additions and 1 deletions
|
@ -216,6 +216,18 @@ extern char __ccm_noinit_end[];
|
|||
extern char __ccm_end[];
|
||||
#endif /* DT_CCM_BASE_ADDRESS */
|
||||
|
||||
#ifdef DT_DTCM_BASE_ADDRESS
|
||||
extern char __dtcm_data_start[];
|
||||
extern char __dtcm_data_end[];
|
||||
extern char __dtcm_bss_start[];
|
||||
extern char __dtcm_bss_end[];
|
||||
extern char __dtcm_noinit_start[];
|
||||
extern char __dtcm_noinit_end[];
|
||||
extern char __dtcm_data_rom_start[];
|
||||
extern char __dtcm_start[];
|
||||
extern char __dtcm_end[];
|
||||
#endif /* DT_DTCM_BASE_ADDRESS */
|
||||
|
||||
/* Used by the Security Attribution Unit to configure the
|
||||
* Non-Secure Callable region.
|
||||
*/
|
||||
|
|
|
@ -23,6 +23,9 @@
|
|||
#define __ccm_data_section Z_GENERIC_SECTION(_CCM_DATA_SECTION_NAME)
|
||||
#define __ccm_bss_section Z_GENERIC_SECTION(_CCM_BSS_SECTION_NAME)
|
||||
#define __ccm_noinit_section Z_GENERIC_SECTION(_CCM_NOINIT_SECTION_NAME)
|
||||
#define __dtcm_data_section Z_GENERIC_SECTION(_DTCM_DATA_SECTION_NAME)
|
||||
#define __dtcm_bss_section Z_GENERIC_SECTION(_DTCM_BSS_SECTION_NAME)
|
||||
#define __dtcm_noinit_section Z_GENERIC_SECTION(_DTCM_NOINIT_SECTION_NAME)
|
||||
#define __imx_boot_conf_section Z_GENERIC_SECTION(IMX_BOOT_CONF)
|
||||
#define __imx_boot_data_section Z_GENERIC_SECTION(IMX_BOOT_DATA)
|
||||
#define __imx_boot_ivt_section Z_GENERIC_SECTION(IMX_BOOT_IVT)
|
||||
|
|
|
@ -56,6 +56,10 @@
|
|||
#define _CCM_DATA_SECTION_NAME .ccm_data
|
||||
#define _CCM_BSS_SECTION_NAME .ccm_bss
|
||||
#define _CCM_NOINIT_SECTION_NAME .ccm_noinit
|
||||
|
||||
#define _DTCM_DATA_SECTION_NAME .dtcm_data
|
||||
#define _DTCM_BSS_SECTION_NAME .dtcm_bss
|
||||
#define _DTCM_NOINIT_SECTION_NAME .dtcm_noinit
|
||||
#endif
|
||||
|
||||
#define IMX_BOOT_CONF .boot_hdr.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue