diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2022-12-09 10:20:17 +0100 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2022-12-15 09:20:52 +0100 |
commit | 7b968a2eb4358f958e4be3aedf462e250ba1749b (patch) | |
tree | 7db2d0bf9301ca019372ffeffc179ec00779527e /spec/build/bsps/arm/atsam/linkcmds.yml | |
parent | bsps/atsam: Fix unidirectional SPI transfers (diff) | |
download | rtems-7b968a2eb4358f958e4be3aedf462e250ba1749b.tar.bz2 |
bsps/atsam: Add NULL pointer protection
Diffstat (limited to 'spec/build/bsps/arm/atsam/linkcmds.yml')
-rw-r--r-- | spec/build/bsps/arm/atsam/linkcmds.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/build/bsps/arm/atsam/linkcmds.yml b/spec/build/bsps/arm/atsam/linkcmds.yml index fe6211f82f..d475b6a245 100644 --- a/spec/build/bsps/arm/atsam/linkcmds.yml +++ b/spec/build/bsps/arm/atsam/linkcmds.yml @@ -2,7 +2,8 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause build-type: config-file content: | MEMORY { - ITCM : ORIGIN = 0x00000000, LENGTH = ${ATSAM_MEMORY_TCM_SIZE} + NULL : ORIGIN = 0x00000000, LENGTH = ${ATSAM_MEMORY_NULL_SIZE} + ITCM : ORIGIN = ${ATSAM_MEMORY_NULL_SIZE}, LENGTH = ((${ATSAM_MEMORY_TCM_SIZE} > ${ATSAM_MEMORY_NULL_SIZE}) ? (${ATSAM_MEMORY_TCM_SIZE} - ${ATSAM_MEMORY_NULL_SIZE}) : 0) INTFLASH : ORIGIN = 0x00400000, LENGTH = ${ATSAM_MEMORY_INTFLASH_SIZE} DTCM : ORIGIN = 0x20000000, LENGTH = ${ATSAM_MEMORY_TCM_SIZE} INTSRAM : ORIGIN = 0x20400000, LENGTH = ${ATSAM_MEMORY_INTSRAM_SIZE} - 2 * ${ATSAM_MEMORY_TCM_SIZE} - ${ATSAM_MEMORY_NOCACHE_SIZE} @@ -13,6 +14,10 @@ content: | /* Must be used only for MPU definitions */ + atsam_memory_null_begin = ORIGIN (NULL); + atsam_memory_null_end = ORIGIN (NULL) + LENGTH (NULL); + atsam_memory_null_size = LENGTH (NULL); + atsam_memory_itcm_begin = ORIGIN (ITCM); atsam_memory_itcm_end = ORIGIN (ITCM) + LENGTH (ITCM); atsam_memory_itcm_size = LENGTH (ITCM); |