Changeset 715d616 in rtems


Ignore:
Timestamp:
Jun 19, 2018, 1:10:36 PM (12 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
511dc4b
Parents:
c8df844
git-author:
Sebastian Huber <sebastian.huber@…> (06/19/18 13:10:36)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/27/18 06:58:16)
Message:

bsps: Support .rtemsstack.* linker input sections

Use a dedicated memory region or place it between the BSS and workspace.

Update #3459.

Location:
bsps
Files:
78 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/shared/start/linkcmds.base

    rc8df844 r715d616  
    336336
    337337                *(.bsp_vector)
     338        } > REGION_VECTOR AT > REGION_VECTOR
     339        .rtemsstack (NOLOAD) : {
     340                *(SORT(.rtemsstack.*))
    338341                bsp_section_vector_end = .;
    339342        } > REGION_VECTOR AT > REGION_VECTOR
  • bsps/bfin/TLL6527M/start/linkcmds

    rc8df844 r715d616  
    127127        . += _StackSize;
    128128        _clear_end = .;
    129         _WorkAreaBase = .;
    130129         _end = .;
    131130         __end = .;
    132131    } > sdram
    133    
     132
     133    .rtemsstack (NOLOAD) : {
     134        *(SORT(.rtemsstack.*))
     135        _WorkAreaBase = .;
     136    } > sdram
     137
    134138/* Debugging stuff follows */
    135139
  • bsps/bfin/bf537Stamp/start/linkcmds

    rc8df844 r715d616  
    135135        . += _StackSize;
    136136        _clear_end = .;
    137         _WorkAreaBase = .;
    138137         _end = .;
    139138         __end = .;
    140139    } > sdram
    141    
     140
     141    .rtemsstack (NOLOAD) : {
     142        *(SORT(.rtemsstack.*))
     143        _WorkAreaBase = .;
     144    } > sdram
     145
    142146/* Debugging stuff follows */
    143147
  • bsps/bfin/eZKit533/start/linkcmds

    rc8df844 r715d616  
    124124        . += _StackSize;
    125125        _clear_end = .;
    126         _WorkAreaBase = .;
    127126         _end = .;
    128127         __end = .;
    129128    } > sdram
    130    
     129
     130    .rtemsstack (NOLOAD) : {
     131        *(SORT(.rtemsstack.*))
     132        _WorkAreaBase = .;
     133    } > sdram
     134
    131135/* Debugging stuff follows */
    132136
  • bsps/epiphany/epiphany_sim/start/linkcmds

    rc8df844 r715d616  
    306306  bsp_section_rodata_load_end = bsp_section_rodata_load_begin + bsp_section_rodata_size;
    307307
    308 .rwbarrier :  {
     308  .rwbarrier : {
    309309    . = ALIGN(8);
    310310    . = ALIGN (bsp_section_rwbarrier_align);
     
    340340  bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_begin;
    341341
     342  .rtemsstack (NOLOAD) : {
     343    *(SORT(.rtemsstack.*))
     344  } > REGION_WORK AT > REGION_WORK
     345
    342346.work :   {
    343347    /*
  • bsps/i386/pc386/start/linkcmds

    rc8df844 r715d616  
    205205  }
    206206  . = ALIGN(32 / 8);
    207   . = ALIGN(32 / 8);
    208207  _end = .; PROVIDE (end = .);
    209   . = ALIGN(0x10);
     208  .rtemsstack (NOLOAD) : {
     209    *(SORT(.rtemsstack.*))
     210  }
    210211  WorkAreaBase = .;
    211212  . = DATA_SEGMENT_END (.);
  • bsps/lm32/lm32_evr/start/linkcmds

    rc8df844 r715d616  
    253253  _fstack = .;
    254254
    255   WorkAreaBase = .;
    256 
    257255    . = ALIGN (16);
    258256    _stack_init = .;
     
    261259  } > sdram
    262260
     261  .rtemsstack (NOLOAD) : {
     262    *(SORT(.rtemsstack.*))
     263    WorkAreaBase = .;
     264  } > sdram
    263265
    264266  /DISCARD/ :
  • bsps/lm32/milkymist/start/linkcmds

    rc8df844 r715d616  
    252252  _fstack = .;
    253253
    254   WorkAreaBase = .;
    255 
    256254    . = ALIGN (16);
    257255    _stack_init = .;
    258256    _clear_end = .;
    259 
    260   } > sdram
    261 
     257  } > sdram
     258
     259  .rtemsstack (NOLOAD) : {
     260    *(SORT(.rtemsstack.*))
     261    WorkAreaBase = .;
     262  } > sdram
    262263
    263264  /DISCARD/ :
  • bsps/m32c/m32cbsp/start/linkcmds

    rc8df844 r715d616  
    158158  . += _StackSize;
    159159  PROVIDE (__stack = .);
     160
     161  .rtemsstack (NOLOAD) : {
     162    *(SORT(.rtemsstack.*))
     163  } > RAM
     164
    160165  PROVIDE (_WorkAreaBase = .);
    161166  . = 0xa00000;
  • bsps/m68k/av5282/start/linkcmds

    rc8df844 r715d616  
    181181                PROVIDE (end = .);
    182182                _clear_end = .;
    183 
     183        } >ram
     184
     185        .rtemsstack (NOLOAD) : {
     186                *(SORT(.rtemsstack.*))
    184187                WorkAreaBase = .;
    185188        } >ram
     189
    186190  /* Stabs debugging sections.  */
    187191  .stab 0 : { *(.stab) }
  • bsps/m68k/av5282/start/linkcmdsflash

    rc8df844 r715d616  
    181181                PROVIDE (end = .);
    182182                _clear_end = .;
     183        }
    183184
     185        .rtemsstack (NOLOAD) : {
     186                *(SORT(.rtemsstack.*))
    184187                WorkAreaBase = .;
    185188        }
  • bsps/m68k/av5282/start/linkcmdsram

    rc8df844 r715d616  
    180180                PROVIDE (end = .);
    181181                _clear_end = .;
     182        } >ram
    182183
     184        .rtemsstack (NOLOAD) : {
     185                *(SORT(.rtemsstack.*))
    183186                WorkAreaBase = .;
    184187        } >ram
     188
    185189  /* Stabs debugging sections.  */
    186190  .stab 0 : { *(.stab) }
  • bsps/m68k/csb360/start/linkcmds

    rc8df844 r715d616  
    156156   
    157157        clear_end = .;
     158  } > ram
    158159
    159         WorkAreaBase = .;
    160         WorkAreaBase = .;
    161 
    162   } > ram
     160  .rtemsstack (NOLOAD) : {
     161        *(SORT(.rtemsstack.*))
     162        WorkAreaBase = .;
     163  } >ram
    163164
    164165  .stab 0 (NOLOAD) :
  • bsps/m68k/gen68340/start/linkcmds

    rc8df844 r715d616  
    192192                _stack_init = .;
    193193                _clear_end = .;
    194 
     194        } >ram
     195
     196        .rtemsstack (NOLOAD) : {
     197                *(SORT(.rtemsstack.*))
    195198                WorkAreaBase = .;
    196199        } >ram
  • bsps/m68k/gen68360/start/linkcmds

    rc8df844 r715d616  
    156156                _stack_init = .;
    157157                _clear_end = .;
    158 
     158        } >ram
     159
     160        .rtemsstack (NOLOAD) : {
     161                *(SORT(.rtemsstack.*))
    159162                WorkAreaBase = .;
    160163        } >ram
  • bsps/m68k/gen68360/start/linkcmds.bootp

    rc8df844 r715d616  
    158158                _stack_init = .;
    159159                _clear_end = .;
     160        } >myram
    160161
     162        .rtemsstack (NOLOAD) : {
     163                *(SORT(.rtemsstack.*))
    161164                WorkAreaBase = .;
    162165        } >myram
  • bsps/m68k/gen68360/start/linkcmds.prom

    rc8df844 r715d616  
    156156                _stack_init = .;
    157157                _clear_end = .;
     158        } >ram
    158159
     160        .rtemsstack (NOLOAD) : {
     161                *(SORT(.rtemsstack.*))
    159162                WorkAreaBase = .;
    160163        } >ram
  • bsps/m68k/mcf5206elite/start/linkcmds

    rc8df844 r715d616  
    189189   
    190190    clear_end = .;
    191 
     191  } > ram
     192
     193  .rtemsstack (NOLOAD) : {
     194    *(SORT(.rtemsstack.*))
    192195    WorkAreaBase = .;
    193     WorkAreaBase = .;
    194 
    195196  } > ram
    196197
  • bsps/m68k/mcf5206elite/start/linkcmds.flash

    rc8df844 r715d616  
    189189   
    190190    clear_end = .;
    191 
     191  } > ram
     192
     193  .rtemsstack (NOLOAD) : {
     194    *(SORT(.rtemsstack.*))
    192195    WorkAreaBase = .;
    193     WorkAreaBase = .;
    194 
    195196  } > ram
    196197
  • bsps/m68k/mcf52235/start/linkcmds

    rc8df844 r715d616  
    180180        . = ALIGN (16);
    181181        PROVIDE(_StackInit = .);
     182    } >sram
     183
     184    .rtemsstack (NOLOAD) : {
     185        *(SORT(.rtemsstack.*))
    182186        PROVIDE(WorkAreaBase = .);
    183187    } >sram
  • bsps/m68k/mcf5225x/start/linkcmds

    rc8df844 r715d616  
    180180        . = ALIGN (16);
    181181        PROVIDE(_StackInit = .);
     182    } >sram
     183
     184    .rtemsstack (NOLOAD) : {
     185        *(SORT(.rtemsstack.*))
    182186        PROVIDE(WorkAreaBase = .);
    183187    } >sram
  • bsps/m68k/mcf5235/start/linkcmds

    rc8df844 r715d616  
    188188                PROVIDE (end = .);
    189189                _clear_end = .;
    190 
     190        } > dram
     191
     192        .rtemsstack (NOLOAD) : {
     193                *(SORT(.rtemsstack.*))
    191194                WorkAreaBase = .;
    192195        } > dram
  • bsps/m68k/mcf5235/start/linkcmdsflash

    rc8df844 r715d616  
    193193                PROVIDE (end = .);
    194194                _clear_end = .;
    195 
     195        } >ram
     196
     197        .rtemsstack (NOLOAD) : {
     198                *(SORT(.rtemsstack.*))
    196199                WorkAreaBase = .;
    197200        } >ram
  • bsps/m68k/mcf5235/start/linkcmdsram

    rc8df844 r715d616  
    188188                PROVIDE (end = .);
    189189                _clear_end = .;
    190 
     190        } >ram
     191
     192        .rtemsstack (NOLOAD) : {
     193                *(SORT(.rtemsstack.*))
    191194                WorkAreaBase = .;
    192195        } >ram
     196
    193197  /* Stabs debugging sections.  */
    194198  .stab 0 : { *(.stab) }
  • bsps/m68k/mcf5329/start/linkcmds

    rc8df844 r715d616  
    181181
    182182        _clear_end = .;
     183    } > dram
     184
     185    .rtemsstack (NOLOAD) : {
     186        *(SORT(.rtemsstack.*))
    183187        WorkAreaBase = .;
    184188    } > dram
  • bsps/m68k/mcf5329/start/linkcmdsflash

    rc8df844 r715d616  
    177177
    178178        _clear_end = .;
     179    } > dram
     180
     181    .rtemsstack (NOLOAD) : {
     182        *(SORT(.rtemsstack.*))
    179183        WorkAreaBase = .;
    180184    } > dram
  • bsps/m68k/mrm332/start/linkcmds

    rc8df844 r715d616  
    199199    _stack_init = .;
    200200    _clear_end = .;
    201 
     201  } > ram
     202  .rtemsstack (NOLOAD) : {
     203    *(SORT(.rtemsstack.*))
    202204    WorkAreaBase = .;
    203205  } > ram
  • bsps/m68k/shared/start/linkcmds.base

    rc8df844 r715d616  
    257257        } > REGION_DATA AT > REGION_DATA
    258258        bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_begin;
     259
     260        .rtemsstack (NOLOAD) : ALIGN_WITH_INPUT {
     261                *(SORT(.rtemsstack.*))
     262        } > REGION_DATA AT > REGION_DATA
    259263
    260264        .work : ALIGN_WITH_INPUT {
  • bsps/m68k/uC5282/start/linkcmds

    rc8df844 r715d616  
    197197        PROVIDE (end = .);
    198198        _clear_end = .;
     199    } >ram
     200
     201    .rtemsstack (NOLOAD) : {
     202        *(SORT(.rtemsstack.*))
    199203        WorkAreaBase = .;
    200204    } >ram
  • bsps/mips/csb350/start/linkcmds

    rc8df844 r715d616  
    195195    end = .;
    196196    _end = .;
    197     . = ALIGN (1024);
     197  } >ram
     198
     199  .rtemsstack (NOLOAD) : {
     200    *(SORT(.rtemsstack.*))
    198201    WorkAreaBase = .;
    199    
    200   } >ram   
    201 
     202  } >ram
    202203
    203204/*
  • bsps/mips/hurricane/start/linkcmds

    rc8df844 r715d616  
    173173     end = .;
    174174    _end = .;
     175  }
     176
     177  .rtemsstack (NOLOAD) : {
     178    *(SORT(.rtemsstack.*))
    175179    WorkAreaBase = .;
    176180  }
    177 
    178181
    179182  /* Debug sections.  These should never be loadable, but they must have
  • bsps/mips/jmr3904/start/linkcmds

    rc8df844 r715d616  
    169169    __stack = .;
    170170    _stack_init = .;
     171    _clear_end = .;
     172  }
     173
     174  .rtemsstack (NOLOAD) : {
     175    *(SORT(.rtemsstack.*))
    171176    WorkAreaBase = .;
    172     _clear_end = .;
    173   }
     177  }
     178
    174179  . = 0x88400000; /* reserve some memory for Work Area */
    175180 end = .;
  • bsps/mips/malta/start/linkcmds

    rc8df844 r715d616  
    170170    __stack = .;
    171171    _stack_init = .;
     172    _clear_end = .;
     173  }
     174
     175  .rtemsstack (NOLOAD) : {
     176    *(SORT(.rtemsstack.*))
    172177    WorkAreaBase = .;
    173     _clear_end = .;
    174   }
     178  }
     179
    175180  . = 0x88400000; /* reserve some memory for Work Area */
    176181 end = .;
  • bsps/mips/rbtx4925/start/linkcmds

    rc8df844 r715d616  
    173173     end = .;
    174174    _end = .;
     175  }
     176
     177  .rtemsstack (NOLOAD) : {
     178    *(SORT(.rtemsstack.*))
    175179    WorkAreaBase = .;
    176180  }
    177 
    178181
    179182  /* Debug sections.  These should never be loadable, but they must have
  • bsps/mips/rbtx4938/start/linkcmds

    rc8df844 r715d616  
    173173     end = .;
    174174    _end = .;
     175  }
     176
     177  .rtemsstack (NOLOAD) : {
     178    *(SORT(.rtemsstack.*))
    175179    WorkAreaBase = .;
    176180  }
    177 
    178181
    179182  /* Debug sections.  These should never be loadable, but they must have
  • bsps/moxie/moxiesim/start/linkcmds

    rc8df844 r715d616  
    230230  _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
    231231  PROVIDE (end = .);
     232  .rtemsstack (NOLOAD) : {
     233    *(SORT(.rtemsstack.*))
     234  }
    232235  WorkAreaBase = .;
    233236  /* Stabs debugging sections.  */
  • bsps/nios2/nios2_iss/start/linkcmds

    rc8df844 r715d616  
    269269        . += StackSize;
    270270        _stack_high = ABSOLUTE(.);
     271    } > onchip_memory_0
     272
     273    .rtemsstack (NOLOAD) : {
     274        *(SORT(.rtemsstack.*))
    271275        WorkAreaBase = .;
    272276    } > onchip_memory_0
  • bsps/or1k/shared/start/linkcmds.base

    rc8df844 r715d616  
    260260  bsp_section_rodata_load_end = bsp_section_rodata_load_begin + bsp_section_rodata_size;
    261261
    262 .rwbarrier : ALIGN_WITH_INPUT {
     262  .rwbarrier : ALIGN_WITH_INPUT {
    263263    . = ALIGN (bsp_section_rwbarrier_align);
    264264  } > REGION_DATA AT > REGION_DATA
     
    289289  bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_begin;
    290290
     291  .rtemsstack (NOLOAD) : ALIGN_WITH_INPUT{
     292    *(SORT(.rtemsstack.*))
     293  } > REGION_WORK AT > REGION_WORK
     294
    291295.work : ALIGN_WITH_INPUT {
    292296    /*
  • bsps/powerpc/gen5200/start/linkcmds.gen5200_base

    rc8df844 r715d616  
    296296        bsp_interrupt_stack_size = bsp_interrupt_stack_end - bsp_interrupt_stack_start;
    297297
     298        .rtemsstack (NOLOAD) : {
     299                *(SORT(.rtemsstack.*))
     300        } > RAM
     301
    298302        /*
    299303         * BSP: Work area start
    300304         */
    301         bsp_work_area_start = bsp_interrupt_stack_end;
     305        bsp_work_area_start = .;
    302306        WorkAreaBase = bsp_work_area_start;
    303307       
  • bsps/powerpc/gen83xx/start/linkcmds.mpc83xx

    rc8df844 r715d616  
    3838REGION_ALIAS ("REGION_DATA_LOAD", WORK);
    3939REGION_ALIAS ("REGION_BSS", WORK);
    40 REGION_ALIAS ("REGION_RWEXTRA", WORK);
     40REGION_ALIAS ("REGION_RTEMSSTACK", WORK);
    4141REGION_ALIAS ("REGION_WORK", WORK);
    4242REGION_ALIAS ("REGION_STACK", WORK);
  • bsps/powerpc/haleakala/start/linkcmds

    rc8df844 r715d616  
    261261        stack.end   = .;
    262262
    263         /* RTEMS workspace: size specified by application */
    264         WorkAreaBase = ALIGN(0x20);
     263    .rtemsstack (NOLOAD) : {
     264        *(SORT(.rtemsstack.*))
     265    } >RAM
     266
     267    WorkAreaBase = .;
    265268
    266269        /* Debugging information */
  • bsps/powerpc/include/bsp/linker-symbols.h

    rc8df844 r715d616  
    8282LINKER_SYMBOL(bsp_section_sbss_size)
    8383
    84 LINKER_SYMBOL(bsp_section_rwextra_begin)
    85 LINKER_SYMBOL(bsp_section_rwextra_end)
    86 LINKER_SYMBOL(bsp_section_rwextra_size)
     84LINKER_SYMBOL(bsp_section_rtemsstack_begin)
     85LINKER_SYMBOL(bsp_section_rtemsstack_end)
     86LINKER_SYMBOL(bsp_section_rtemsstack_size)
    8787
    8888LINKER_SYMBOL(bsp_section_work_begin)
  • bsps/powerpc/mpc55xxevb/start/linkcmds.gwlcfm

    rc8df844 r715d616  
    1818REGION_ALIAS ("REGION_DATA_LOAD", ROM);
    1919REGION_ALIAS ("REGION_BSS", RAM_EXT);
    20 REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
     20REGION_ALIAS ("REGION_RTEMSSTACK", RAM_EXT);
    2121REGION_ALIAS ("REGION_WORK", RAM_EXT);
    2222REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/mpc55xxevb/start/linkcmds.mpc5566evb

    rc8df844 r715d616  
    1818REGION_ALIAS ("REGION_DATA_LOAD", ROM);
    1919REGION_ALIAS ("REGION_BSS", RAM_EXT);
    20 REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
     20REGION_ALIAS ("REGION_RTEMSSTACK", RAM_EXT);
    2121REGION_ALIAS ("REGION_WORK", RAM);
    2222REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/mpc55xxevb/start/linkcmds.mpc5643l_evb

    rc8df844 r715d616  
    2424REGION_ALIAS ("REGION_DATA_LOAD", ROM);
    2525REGION_ALIAS ("REGION_BSS", RAM);
    26 REGION_ALIAS ("REGION_RWEXTRA", RAM);
     26REGION_ALIAS ("REGION_RTEMSSTACK", RAM);
    2727REGION_ALIAS ("REGION_WORK", RAM_1);
    2828REGION_ALIAS ("REGION_STACK", RAM_1);
  • bsps/powerpc/mpc55xxevb/start/linkcmds.mpc5668g

    rc8df844 r715d616  
    2020REGION_ALIAS ("REGION_DATA_LOAD", ROM);
    2121REGION_ALIAS ("REGION_BSS", RAM);
    22 REGION_ALIAS ("REGION_RWEXTRA", RAM);
     22REGION_ALIAS ("REGION_RTEMSSTACK", RAM);
    2323REGION_ALIAS ("REGION_WORK", RAM);
    2424REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/mpc55xxevb/start/linkcmds.mpc5674f_ecu508

    rc8df844 r715d616  
    2222REGION_ALIAS ("REGION_DATA_LOAD", ROM);
    2323REGION_ALIAS ("REGION_BSS", RAM);
    24 REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
     24REGION_ALIAS ("REGION_RTEMSSTACK", RAM_EXT);
    2525REGION_ALIAS ("REGION_WORK", RAM);
    2626REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/mpc55xxevb/start/linkcmds.mpc5674f_rsm6_base

    rc8df844 r715d616  
    1919REGION_ALIAS ("REGION_DATA_LOAD", ROM);
    2020REGION_ALIAS ("REGION_BSS", RAM);
    21 REGION_ALIAS ("REGION_RWEXTRA", RAM);
     21REGION_ALIAS ("REGION_RTEMSSTACK", RAM);
    2222REGION_ALIAS ("REGION_WORK", RAM);
    2323REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/mpc55xxevb/start/linkcmds.mpc5674fevb

    rc8df844 r715d616  
    1919REGION_ALIAS ("REGION_DATA_LOAD", ROM);
    2020REGION_ALIAS ("REGION_BSS", RAM);
    21 REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
     21REGION_ALIAS ("REGION_RTEMSSTACK", RAM_EXT);
    2222REGION_ALIAS ("REGION_WORK", RAM);
    2323REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/mpc55xxevb/start/linkcmds.phycore_mpc5554

    rc8df844 r715d616  
    2727REGION_ALIAS ("REGION_DATA_LOAD", ROM);
    2828REGION_ALIAS ("REGION_BSS", RAM_EXT);
    29 REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
     29REGION_ALIAS ("REGION_RTEMSSTACK", RAM_EXT);
    3030REGION_ALIAS ("REGION_WORK", RAM_EXT);
    3131REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/mpc8260ads/start/linkcmds

    rc8df844 r715d616  
    302302    clear_end = .;
    303303
     304    .rtemsstack (NOLOAD) : {
     305        *(SORT(.rtemsstack.*))
     306    } >ram
     307
    304308    WorkAreaBase = .;
    305309
  • bsps/powerpc/psim/start/linkcmds

    rc8df844 r715d616  
    2727REGION_ALIAS ("REGION_DATA_LOAD", RAM);
    2828REGION_ALIAS ("REGION_BSS", RAM);
    29 REGION_ALIAS ("REGION_RWEXTRA", RAM);
     29REGION_ALIAS ("REGION_RTEMSSTACK", RAM);
    3030REGION_ALIAS ("REGION_WORK", RAM);
    3131REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/qemuppc/start/linkcmds

    rc8df844 r715d616  
    2222REGION_ALIAS ("REGION_DATA_LOAD", ROM);
    2323REGION_ALIAS ("REGION_BSS", RAM);
    24 REGION_ALIAS ("REGION_RWEXTRA", RAM);
     24REGION_ALIAS ("REGION_RTEMSSTACK", RAM);
    2525REGION_ALIAS ("REGION_WORK", RAM);
    2626REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/qoriq/start/linkcmds.qoriq_core_0

    rc8df844 r715d616  
    2525REGION_ALIAS ("REGION_DATA_LOAD", LOW);
    2626REGION_ALIAS ("REGION_BSS", HIGH);
    27 REGION_ALIAS ("REGION_RWEXTRA", HIGH);
     27REGION_ALIAS ("REGION_RTEMSSTACK", HIGH);
    2828REGION_ALIAS ("REGION_WORK", HIGH);
    2929REGION_ALIAS ("REGION_STACK", HIGH);
  • bsps/powerpc/qoriq/start/linkcmds.qoriq_core_1

    rc8df844 r715d616  
    2424REGION_ALIAS ("REGION_FAST_DATA_LOAD", RAM);
    2525REGION_ALIAS ("REGION_BSS", RAM);
    26 REGION_ALIAS ("REGION_RWEXTRA", RAM);
     26REGION_ALIAS ("REGION_RTEMSSTACK", RAM);
    2727REGION_ALIAS ("REGION_WORK", RAM);
    2828REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/qoriq/start/linkcmds.qoriq_e500

    rc8df844 r715d616  
    2525REGION_ALIAS ("REGION_DATA_LOAD", LOW);
    2626REGION_ALIAS ("REGION_BSS", HIGH);
    27 REGION_ALIAS ("REGION_RWEXTRA", HIGH);
     27REGION_ALIAS ("REGION_RTEMSSTACK", HIGH);
    2828REGION_ALIAS ("REGION_WORK", HIGH);
    2929REGION_ALIAS ("REGION_STACK", HIGH);
  • bsps/powerpc/qoriq/start/linkcmds.qoriq_e6500_32

    rc8df844 r715d616  
    2626REGION_ALIAS ("REGION_DATA_LOAD", LOW);
    2727REGION_ALIAS ("REGION_BSS", HIGH);
    28 REGION_ALIAS ("REGION_RWEXTRA", HIGH);
     28REGION_ALIAS ("REGION_RTEMSSTACK", HIGH);
    2929REGION_ALIAS ("REGION_WORK", HIGH);
    3030REGION_ALIAS ("REGION_STACK", HIGH);
  • bsps/powerpc/qoriq/start/mmu-config.c

    rc8df844 r715d616  
    132132        ENTRY_RW(bsp_section_sbss_begin, bsp_section_sbss_size),
    133133        ENTRY_RW(bsp_section_bss_begin, bsp_section_bss_size),
    134         ENTRY_RW(bsp_section_rwextra_begin, bsp_section_rwextra_size),
     134        ENTRY_RW(bsp_section_rtemsstack_begin, bsp_section_rtemsstack_size),
    135135        ENTRY_RW(bsp_section_stack_begin, bsp_section_stack_size),
    136136        ENTRY_IO(bsp_section_nocache_begin, bsp_section_nocache_size),
  • bsps/powerpc/shared/start/linkcmds.base

    rc8df844 r715d616  
    320320        bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_begin;
    321321
    322         .rwextra : ALIGN_WITH_INPUT {
    323                 bsp_section_rwextra_begin = .;
     322        .rtemsstack (NOLOAD) : ALIGN_WITH_INPUT {
     323                bsp_section_rtemsstack_begin = .;
    324324                *(.bsp_rwextra)
    325                 bsp_section_rwextra_end = .;
    326         } > REGION_RWEXTRA AT > REGION_RWEXTRA
    327         bsp_section_rwextra_size = bsp_section_rwextra_end - bsp_section_rwextra_begin;
     325                *(SORT(.rtemsstack.*))
     326                bsp_section_rtemsstack_end = .;
     327        } > REGION_RTEMSSTACK AT > REGION_RTEMSSTACK
     328        bsp_section_rtemsstack_size = bsp_section_rtemsstack_end - bsp_section_rtemsstack_begin;
    328329
    329330        .work : ALIGN_WITH_INPUT {
  • bsps/powerpc/shared/start/linkcmds.share

    rc8df844 r715d616  
    9898  _TLS_Size = _TLS_BSS_end - _TLS_Data_begin;
    9999  _TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));
     100
     101  .rtemsstack (NOLOAD) : {
     102    *(SORT(.rtemsstack.*))
     103  } >CODE
    100104
    101105  /* Adjust the address for the data segment.  We want to adjust up to
  • bsps/powerpc/ss555/start/linkcmds

    rc8df844 r715d616  
    249249  PROVIDE(intrStackPtr = intrStack);
    250250
     251  .rtemsstack (NOLOAD) : {
     252    *(SORT(.rtemsstack.*))
     253  }
     254
    251255  /*
    252256   * Work Area
  • bsps/powerpc/t32mppc/start/linkcmds.t32mppc

    rc8df844 r715d616  
    1818REGION_ALIAS ("REGION_DATA_LOAD", RAM);
    1919REGION_ALIAS ("REGION_BSS", RAM);
    20 REGION_ALIAS ("REGION_RWEXTRA", RAM);
     20REGION_ALIAS ("REGION_RTEMSSTACK", RAM);
    2121REGION_ALIAS ("REGION_WORK", RAM);
    2222REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/tqm8xx/start/linkcmds

    rc8df844 r715d616  
    2626REGION_ALIAS ("REGION_DATA_LOAD", RAM);
    2727REGION_ALIAS ("REGION_BSS", RAM);
    28 REGION_ALIAS ("REGION_RWEXTRA", RAM);
     28REGION_ALIAS ("REGION_RTEMSSTACK", RAM);
    2929REGION_ALIAS ("REGION_WORK", RAM);
    3030REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/virtex/start/linkcmds.in

    rc8df844 r715d616  
    2020REGION_ALIAS ("REGION_DATA_LOAD", RAM);
    2121REGION_ALIAS ("REGION_BSS", RAM);
    22 REGION_ALIAS ("REGION_RWEXTRA", RAM);
     22REGION_ALIAS ("REGION_RTEMSSTACK", RAM);
    2323REGION_ALIAS ("REGION_WORK", RAM);
    2424REGION_ALIAS ("REGION_STACK", RAM);
  • bsps/powerpc/virtex4/start/linkcmds

    rc8df844 r715d616  
    261261  __stack_base    = .;                  /* Initial stack builds downwards */
    262262
    263   /* RTEMS workspace: size specified by application */
    264   WorkAreaBase    = ALIGN(0x10);        /* Align to a cache-line boundary */
     263  .rtemsstack (NOLOAD) : {
     264    *(SORT(.rtemsstack.*))
     265  } >RAM
     266
     267  WorkAreaBase = .;
    265268
    266269  /* The heap comes after the work space */
  • bsps/powerpc/virtex5/start/linkcmds

    rc8df844 r715d616  
    261261  __stack_base    = .;                  /* Initial stack builds downwards */
    262262
    263   /* RTEMS workspace: size specified by application */
    264   WorkAreaBase    = ALIGN(0x20);        /* Align to a cache-line boundary */
     263  .rtemsstack (NOLOAD) : {
     264    *(SORT(.rtemsstack.*))
     265  } >RAM
     266
     267  WorkAreaBase = .;
    265268
    266269  /* The heap comes after the work space */
  • bsps/riscv/riscv_generic/start/linkcmds

    rc8df844 r715d616  
    314314
    315315
    316 .rwbarrier :  {
     316  .rwbarrier : {
    317317    . = ALIGN(8);
    318318    . = ALIGN (bsp_section_rwbarrier_align);
     
    348348  bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_begin;
    349349
     350  .rtemsstack (NOLOAD) : {
     351    *(SORT(.rtemsstack.*))
     352  } > REGION_WORK AT > REGION_WORK
     353
    350354.work :   {
    351355    /*
  • bsps/sh/gensh1/start/linkcmds

    rc8df844 r715d616  
    189189  _WorkAreaBase = . ;
    190190
     191  .rtemsstack (NOLOAD) : {
     192    *(SORT(.rtemsstack.*))
     193  } > onchip_ram
     194
    191195  _CPU_Interrupt_stack_low  = 0x0f000000 ;
    192196  _CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ;
  • bsps/sh/gensh2/start/linkcmds

    rc8df844 r715d616  
    200200  _WorkAreaBase = . ;
    201201
     202  .rtemsstack (NOLOAD) : {
     203    *(SORT(.rtemsstack.*))
     204  } > onchip_ram
     205
    202206  _CPU_Interrupt_stack_low  = 0xFFFFF000;
    203207  _CPU_Interrupt_stack_high = 0xFFFFFFFF;
  • bsps/sh/gensh2/start/linkcmds.ram

    rc8df844 r715d616  
    201201
    202202  _WorkAreaBase = . ;
    203   . = 0x00480000 ;
     203
     204  .rtemsstack (NOLOAD) : {
     205    *(SORT(.rtemsstack.*))
     206  } > onchip_ram
    204207
    205208  _CPU_Interrupt_stack_low  = 0xFFFFF000;
  • bsps/sh/gensh2/start/linkcmds.rom

    rc8df844 r715d616  
    207207  _WorkAreaBase = . ;
    208208
     209  .rtemsstack (NOLOAD) : {
     210    *(SORT(.rtemsstack.*))
     211  } > onchip_ram
     212
    209213  _CPU_Interrupt_stack_low  = 0xFFFFF000;
    210214  _CPU_Interrupt_stack_high = 0xFFFFFFFF;
  • bsps/sh/gensh4/start/linkcmds

    rc8df844 r715d616  
    145145  } > ram
    146146
    147   .stack . : {
     147  .stack : {
    148148    . = . + 4096;
    149   }
     149  } > ram
    150150
    151   . = ALIGN(16);
     151  .rtemsstack (NOLOAD) : {
     152    *(SORT(.rtemsstack.*))
     153  } > ram
     154
    152155  _WorkAreaBase = . ;
    153156
     
    189192  .debug_typenames 0 : { *(.debug_typenames) }
    190193  .debug_varnames  0 : { *(.debug_varnames) }
    191   .stack : { _stack = .; *(.stack) }
    192194  /* These must appear regardless of  .  */
    193195}
  • bsps/sh/gensh4/start/linkcmds.rom

    rc8df844 r715d616  
    188188  } > ram
    189189
    190   . = ALIGN(16);
     190  .rtemsstack (NOLOAD) : {
     191    *(SORT(.rtemsstack.*))
     192  } > ram
     193
    191194  _WorkAreaBase = . ;
    192195
  • bsps/sh/gensh4/start/linkcmds.rom2ram

    rc8df844 r715d616  
    191191      *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
    192192    } >ram
    193   . = ALIGN(16);
     193
     194  .rtemsstack (NOLOAD) : {
     195    *(SORT(.rtemsstack.*))
     196  } > ram
    194197
    195198  _WorkAreaBase = . ;
  • bsps/sh/shsim/start/linkcmds

    rc8df844 r715d616  
    210210  _stack = .;
    211211
     212  .rtemsstack (NOLOAD) : {
     213    *(SORT(.rtemsstack.*))
     214  } > ram
     215
    212216  _WorkAreaBase = . ;
    213217
  • bsps/sparc/shared/start/linkcmds.base

    rc8df844 r715d616  
    155155      *(.rela.rtemsrwset*)
    156156    } >ram
     157  .rtemsstack (NOLOAD) : {
     158    *(SORT(.rtemsstack.*))
     159  } > ram
    157160  .data :
    158161  {
  • bsps/sparc64/shared/start/linkcmds

    rc8df844 r715d616  
    207207    _end = .;
    208208    __end = .;
    209  
    210     . = ALIGN (16); /* arbitrary alignment */
     209  } > ram
     210
     211  .rtemsstack (NOLOAD) : {
     212    *(SORT(.rtemsstack.*))
    211213    PROVIDE (WorkAreaBase = .);
     214  } > ram
     215
     216  .heap : {
    212217    . += HeapSize;
    213218    PROVIDE (HeapBase = .);
  • bsps/v850/gdbv850sim/start/linkcmds

    rc8df844 r715d616  
    195195  . += _StackSize;
    196196  _stack = .;
     197  .rtemsstack (NOLOAD) : {
     198    *(SORT(.rtemsstack.*))
     199  }
    197200  _WorkAreaBase = .;
    198201  _end = . ;
Note: See TracChangeset for help on using the changeset viewer.