diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-09 16:03:11 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-12 09:08:36 +0100 |
commit | 32991495b48d1b5e4804b2f10a67a800f4608e75 (patch) | |
tree | 2a05470107f3a8918689b9ed4c94760f08a2631a /bsps/sh | |
parent | score: Move thread stack allocation (diff) | |
download | rtems-32991495b48d1b5e4804b2f10a67a800f4608e75.tar.bz2 |
score: Statically allocate idle/MPCI stacks
Place idle and MPCI stacks into extra linker sections. This can be
optionally used by applications to control the placement of the stacks.
Update #3835.
Diffstat (limited to 'bsps/sh')
-rw-r--r-- | bsps/sh/gensh1/start/linkcmds | 4 | ||||
-rw-r--r-- | bsps/sh/gensh2/start/linkcmds | 4 | ||||
-rw-r--r-- | bsps/sh/gensh2/start/linkcmds.ram | 4 | ||||
-rw-r--r-- | bsps/sh/gensh2/start/linkcmds.rom | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/bsps/sh/gensh1/start/linkcmds b/bsps/sh/gensh1/start/linkcmds index 4c2b5e0d77..dc734de8e5 100644 --- a/bsps/sh/gensh1/start/linkcmds +++ b/bsps/sh/gensh1/start/linkcmds @@ -187,6 +187,10 @@ SECTIONS _end = . ; PROVIDE (end = .); + .rtemsstackidle (NOLOAD) : { + *(SORT(.rtemsstack.idle*)) + } > ram + _WorkAreaBase = . ; .rtemsstack (NOLOAD) : { diff --git a/bsps/sh/gensh2/start/linkcmds b/bsps/sh/gensh2/start/linkcmds index abc7a494b6..5fd04dba41 100644 --- a/bsps/sh/gensh2/start/linkcmds +++ b/bsps/sh/gensh2/start/linkcmds @@ -198,6 +198,10 @@ SECTIONS _end = . ; PROVIDE (end = .); + .rtemsstackidle (NOLOAD) : { + *(SORT(.rtemsstack.idle*)) + } > ram + _WorkAreaBase = . ; .rtemsstack (NOLOAD) : { diff --git a/bsps/sh/gensh2/start/linkcmds.ram b/bsps/sh/gensh2/start/linkcmds.ram index 7a1431889e..4db55f03a8 100644 --- a/bsps/sh/gensh2/start/linkcmds.ram +++ b/bsps/sh/gensh2/start/linkcmds.ram @@ -200,6 +200,10 @@ SECTIONS _end = . ; PROVIDE (end = .); + .rtemsstackidle (NOLOAD) : { + *(SORT(.rtemsstack.idle*)) + } > ram + _WorkAreaBase = . ; .rtemsstack (NOLOAD) : { diff --git a/bsps/sh/gensh2/start/linkcmds.rom b/bsps/sh/gensh2/start/linkcmds.rom index c56ff6b033..eb713244f4 100644 --- a/bsps/sh/gensh2/start/linkcmds.rom +++ b/bsps/sh/gensh2/start/linkcmds.rom @@ -201,6 +201,10 @@ SECTIONS _end = . ; PROVIDE (end = .); + .rtemsstackidle (NOLOAD) : { + *(SORT(.rtemsstack.idle*)) + } > ram + _HeapStart = . ; . = . + 1024 * 20 ; PROVIDE( _HeapEnd = . ); |