diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-06-19 15:10:36 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-06-27 08:58:16 +0200 |
commit | 715d6167e07a46f5bc37f42993c209450484bbe8 (patch) | |
tree | a2b7b713ecfe5d6bbe80db74f79dfeba62e64a8b /bsps/mips | |
parent | score: Add CPU_INTERRUPT_STACK_ALIGNMENT (diff) | |
download | rtems-715d6167e07a46f5bc37f42993c209450484bbe8.tar.bz2 |
bsps: Support .rtemsstack.* linker input sections
Use a dedicated memory region or place it between the BSS and workspace.
Update #3459.
Diffstat (limited to 'bsps/mips')
-rw-r--r-- | bsps/mips/csb350/start/linkcmds | 9 | ||||
-rw-r--r-- | bsps/mips/hurricane/start/linkcmds | 5 | ||||
-rw-r--r-- | bsps/mips/jmr3904/start/linkcmds | 7 | ||||
-rw-r--r-- | bsps/mips/malta/start/linkcmds | 7 | ||||
-rw-r--r-- | bsps/mips/rbtx4925/start/linkcmds | 5 | ||||
-rw-r--r-- | bsps/mips/rbtx4938/start/linkcmds | 5 |
6 files changed, 29 insertions, 9 deletions
diff --git a/bsps/mips/csb350/start/linkcmds b/bsps/mips/csb350/start/linkcmds index b11b73bf42..d9d2d1c815 100644 --- a/bsps/mips/csb350/start/linkcmds +++ b/bsps/mips/csb350/start/linkcmds @@ -194,11 +194,12 @@ SECTIONS _clear_end = .; end = .; _end = .; - . = ALIGN (1024); - WorkAreaBase = .; - - } >ram + } >ram + .rtemsstack (NOLOAD) : { + *(SORT(.rtemsstack.*)) + WorkAreaBase = .; + } >ram /* ** DWARF debug sections. diff --git a/bsps/mips/hurricane/start/linkcmds b/bsps/mips/hurricane/start/linkcmds index 4e10c29f6e..3ffaf52710 100644 --- a/bsps/mips/hurricane/start/linkcmds +++ b/bsps/mips/hurricane/start/linkcmds @@ -172,9 +172,12 @@ SECTIONS _stack_init = .; end = .; _end = .; - WorkAreaBase = .; } + .rtemsstack (NOLOAD) : { + *(SORT(.rtemsstack.*)) + WorkAreaBase = .; + } /* Debug sections. These should never be loadable, but they must have zero addresses for the debuggers to work correctly. */ diff --git a/bsps/mips/jmr3904/start/linkcmds b/bsps/mips/jmr3904/start/linkcmds index 12a8a65b09..a3d64a4284 100644 --- a/bsps/mips/jmr3904/start/linkcmds +++ b/bsps/mips/jmr3904/start/linkcmds @@ -168,9 +168,14 @@ SECTIONS . += _StackSize; __stack = .; _stack_init = .; - WorkAreaBase = .; _clear_end = .; } + + .rtemsstack (NOLOAD) : { + *(SORT(.rtemsstack.*)) + WorkAreaBase = .; + } + . = 0x88400000; /* reserve some memory for Work Area */ end = .; _end = .; diff --git a/bsps/mips/malta/start/linkcmds b/bsps/mips/malta/start/linkcmds index 3a71c5af8b..4e44bce110 100644 --- a/bsps/mips/malta/start/linkcmds +++ b/bsps/mips/malta/start/linkcmds @@ -169,9 +169,14 @@ SECTIONS . += _StackSize; __stack = .; _stack_init = .; - WorkAreaBase = .; _clear_end = .; } + + .rtemsstack (NOLOAD) : { + *(SORT(.rtemsstack.*)) + WorkAreaBase = .; + } + . = 0x88400000; /* reserve some memory for Work Area */ end = .; _end = .; diff --git a/bsps/mips/rbtx4925/start/linkcmds b/bsps/mips/rbtx4925/start/linkcmds index 4f7de84115..7c75cb5d59 100644 --- a/bsps/mips/rbtx4925/start/linkcmds +++ b/bsps/mips/rbtx4925/start/linkcmds @@ -172,9 +172,12 @@ SECTIONS _stack_init = .; end = .; _end = .; - WorkAreaBase = .; } + .rtemsstack (NOLOAD) : { + *(SORT(.rtemsstack.*)) + WorkAreaBase = .; + } /* Debug sections. These should never be loadable, but they must have zero addresses for the debuggers to work correctly. */ diff --git a/bsps/mips/rbtx4938/start/linkcmds b/bsps/mips/rbtx4938/start/linkcmds index 246e11debc..a9deef8cd9 100644 --- a/bsps/mips/rbtx4938/start/linkcmds +++ b/bsps/mips/rbtx4938/start/linkcmds @@ -172,9 +172,12 @@ SECTIONS _stack_init = .; end = .; _end = .; - WorkAreaBase = .; } + .rtemsstack (NOLOAD) : { + *(SORT(.rtemsstack.*)) + WorkAreaBase = .; + } /* Debug sections. These should never be loadable, but they must have zero addresses for the debuggers to work correctly. */ |