diff options
author | Peng Fan <peng.fan@nxp.com> | 2018-01-11 13:39:26 +0800 |
---|---|---|
committer | Abel Vesa <abel.vesa@nxp.com> | 2018-06-11 10:33:02 +0300 |
commit | c541784adaa45d88989ab05b075827da0cfd4df2 (patch) | |
tree | aed1d3407a36e789b32deefc4147455a119faa1a /bl31/bl31.ld.S | |
parent | 6c0b5030913b7886bcd75247459facb87536cdc3 (diff) |
imx8mq: move stack to ocram_s
Add an ocram_s mmap entry
Merge mmap entry to use 2MB aligned base and size to shrink the final
mmu table size.
Move stack to ocram_s
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'bl31/bl31.ld.S')
-rw-r--r-- | bl31/bl31.ld.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bl31/bl31.ld.S b/bl31/bl31.ld.S index e6363354..8e0eb59d 100644 --- a/bl31/bl31.ld.S +++ b/bl31/bl31.ld.S @@ -160,11 +160,13 @@ SECTIONS ASSERT(. <= BL31_PROGBITS_LIMIT, "BL31 progbits has exceeded its limit.") #endif +#if !STACK_IN_OCRAM_S stacks (NOLOAD) : { __STACKS_START__ = .; *(tzfw_normal_stacks) __STACKS_END__ = .; } >RAM +#endif /* * The .bss section gets initialised to 0 at runtime. @@ -288,5 +290,16 @@ SECTIONS xlat_table (NOLOAD) : { *(xlat_table) } >RAM_S + +#if STACK_IN_OCRAM_S + stacks (NOLOAD) : { + __STACKS_START__ = .; + *(tzfw_normal_stacks) + __STACKS_END__ = .; + } >RAM_S +#endif + +ASSERT(. <= OCRAM_S_LIMIT, "OCRAM_S limit has been exceeded.") + #endif } |