summaryrefslogtreecommitdiff
path: root/bsp/sifive-hifive1
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-01-17 14:05:49 -0800
committerNathaniel Graff <nathaniel.graff@sifive.com>2019-01-29 11:00:26 -0800
commit15bb22f7ed93038a2e7256726b27bf0e45cb4dfe (patch)
tree27eddfadf4714ef761ab1bc91c56e83888a81ed0 /bsp/sifive-hifive1
parentf11a6b466c02ed41632a32ecb60850147ed6680f (diff)
Regen BSPs for separate stacks and heaps
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'bsp/sifive-hifive1')
-rw-r--r--bsp/sifive-hifive1/mee.lds19
1 files changed, 14 insertions, 5 deletions
diff --git a/bsp/sifive-hifive1/mee.lds b/bsp/sifive-hifive1/mee.lds
index 0e0a302..1c894ee 100644
--- a/bsp/sifive-hifive1/mee.lds
+++ b/bsp/sifive-hifive1/mee.lds
@@ -19,7 +19,8 @@ PHDRS
SECTIONS
{
- __stack_size = DEFINED(__stack_size) ? __stack_size : 0x800;
+ __stack_size = DEFINED(__stack_size) ? __stack_size : 0x400;
+ __heap_size = DEFINED(__heap_size) ? __heap_size : 0x400;
.init :
@@ -199,18 +200,26 @@ SECTIONS
PROVIDE( _end = . );
PROVIDE( end = . );
PROVIDE( mee_segment_bss_target_end = . );
- PROVIDE( mee_segment_heap_target_start = . );
- .stack ORIGIN(ram) + LENGTH(ram) - __stack_size :
+ .stack :
{
- PROVIDE( mee_segment_heap_target_end = . );
- PROVIDE( _heap_end = . );
+ PROVIDE(mee_segment_stack_begin = .);
. = __stack_size;
PROVIDE( _sp = . );
PROVIDE(mee_segment_stack_end = .);
} >ram AT>ram :ram
+ .heap :
+ {
+ PROVIDE( mee_segment_heap_target_start = . );
+ . = __heap_size;
+ . = __heap_size == 0 ? 0 : ORIGIN(ram) + LENGTH(ram);
+ PROVIDE( mee_segment_heap_target_end = . );
+ PROVIDE( _heap_end = . );
+ } >ram AT>ram :ram
+
+
}