source: rtems/spec/build/bsps/arm/atsam/linkcmds.yml @ 7b968a2e

Last change on this file since 7b968a2e was 7b968a2e, checked in by Christian Mauderer <christian.mauderer@…>, on 12/09/22 at 09:20:17

bsps/atsam: Add NULL pointer protection

  • Property mode set to 100644
File size: 2.4 KB
Line 
1SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
2build-type: config-file
3content: |
4  MEMORY {
5    NULL      : ORIGIN = 0x00000000, LENGTH = ${ATSAM_MEMORY_NULL_SIZE}
6    ITCM      : ORIGIN = ${ATSAM_MEMORY_NULL_SIZE}, LENGTH = ((${ATSAM_MEMORY_TCM_SIZE} > ${ATSAM_MEMORY_NULL_SIZE}) ? (${ATSAM_MEMORY_TCM_SIZE} - ${ATSAM_MEMORY_NULL_SIZE}) : 0)
7    INTFLASH  : ORIGIN = 0x00400000, LENGTH = ${ATSAM_MEMORY_INTFLASH_SIZE}
8    DTCM      : ORIGIN = 0x20000000, LENGTH = ${ATSAM_MEMORY_TCM_SIZE}
9    INTSRAM   : ORIGIN = 0x20400000, LENGTH = ${ATSAM_MEMORY_INTSRAM_SIZE} - 2 * ${ATSAM_MEMORY_TCM_SIZE} - ${ATSAM_MEMORY_NOCACHE_SIZE}
10    NOCACHE   : ORIGIN = 0x20400000 + ${ATSAM_MEMORY_INTSRAM_SIZE} - 2 * ${ATSAM_MEMORY_TCM_SIZE} - ${ATSAM_MEMORY_NOCACHE_SIZE}, LENGTH = ${ATSAM_MEMORY_NOCACHE_SIZE}
11    SDRAM     : ORIGIN = 0x70000000, LENGTH = ${ATSAM_MEMORY_SDRAM_SIZE}
12    QSPIFLASH  : ORIGIN = 0x80000000, LENGTH = ${ATSAM_MEMORY_QSPIFLASH_SIZE}
13  }
14
15  /* Must be used only for MPU definitions */
16
17  atsam_memory_null_begin = ORIGIN (NULL);
18  atsam_memory_null_end = ORIGIN (NULL) + LENGTH (NULL);
19  atsam_memory_null_size = LENGTH (NULL);
20
21  atsam_memory_itcm_begin = ORIGIN (ITCM);
22  atsam_memory_itcm_end = ORIGIN (ITCM) + LENGTH (ITCM);
23  atsam_memory_itcm_size = LENGTH (ITCM);
24
25  atsam_memory_intflash_begin = ORIGIN (INTFLASH);
26  atsam_memory_intflash_end = ORIGIN (INTFLASH) + LENGTH (INTFLASH);
27  atsam_memory_intflash_size = LENGTH (INTFLASH);
28
29  atsam_memory_dtcm_begin = ORIGIN (DTCM);
30  atsam_memory_dtcm_end = ORIGIN (DTCM) + LENGTH (DTCM);
31  atsam_memory_dtcm_size = LENGTH (DTCM);
32
33  atsam_memory_intsram_begin = ORIGIN (INTSRAM);
34  atsam_memory_intsram_end = ORIGIN (INTSRAM) + LENGTH (INTSRAM);
35  atsam_memory_intsram_size = LENGTH (INTSRAM);
36
37  atsam_memory_nocache_begin = ORIGIN (NOCACHE);
38  atsam_memory_nocache_end = ORIGIN (NOCACHE) + LENGTH (NOCACHE);
39  atsam_memory_nocache_size = LENGTH (NOCACHE);
40
41  atsam_memory_sdram_begin = ORIGIN (SDRAM);
42  atsam_memory_sdram_end = ORIGIN (SDRAM) + LENGTH (SDRAM);
43  atsam_memory_sdram_size = LENGTH (SDRAM);
44
45  atsam_memory_qspiflash_begin = ORIGIN (QSPIFLASH);
46  atsam_memory_qspiflash_end = ORIGIN (QSPIFLASH) + LENGTH (QSPIFLASH);
47  atsam_memory_qspiflash_size = LENGTH (QSPIFLASH);
48copyrights:
49- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
50enabled-by: true
51install-path: ${BSP_LIBDIR}
52links: []
53target: linkcmds.memory
54type: build
Note: See TracBrowser for help on using the repository browser.