summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorKarel Gardas <karel@functional.vision>2022-04-07 21:15:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-05-23 08:36:41 +0200
commit635cd68aa7c3243825a536627d29ce9cc902d19b (patch)
treeaf3440432369396c7a710fa5f4d1a213eb4338c9 /bsps
parentscore: Add SPDX License Identifier (diff)
downloadrtems-635cd68aa7c3243825a536627d29ce9cc902d19b.tar.bz2
bsp/arm: allocate .rtemsstack on REGION_STACK instead of on REGION_WORK
REGION_WORK may be backed by external RAM which may not be initialized in a time we need stack to work well. E.g. code loaded in flash, stack allocated on in-cpu SRAM and data (REGION_WORK) on external SDRAM. Sponsored-By: Precidata
Diffstat (limited to 'bsps')
-rw-r--r--bsps/arm/shared/start/linkcmds.base2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/arm/shared/start/linkcmds.base b/bsps/arm/shared/start/linkcmds.base
index ec6c4e4557..10d2c54028 100644
--- a/bsps/arm/shared/start/linkcmds.base
+++ b/bsps/arm/shared/start/linkcmds.base
@@ -329,7 +329,7 @@ SECTIONS {
bsp_section_rtemsstack_begin = .;
*(SORT_BY_ALIGNMENT (SORT_BY_NAME (.rtemsstack*)))
bsp_section_rtemsstack_end = .;
- } > REGION_WORK AT > REGION_WORK
+ } > REGION_STACK AT > REGION_STACK
bsp_section_rtemsstack_size = bsp_section_rtemsstack_end - bsp_section_rtemsstack_begin;
.noinit (NOLOAD) : ALIGN_WITH_INPUT {