File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
1212- Main function no longer needs to be close to _ start. A linker script may copy
1313 all code to RAM and keep .init in flash/ROM.
14+ - By default, the stack is now split into equal parts based on the number of
15+ harts.
1416
1517### Fixed
1618
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ ${INCLUDE_LINKER_FILES}
7272PROVIDE(_stext = ORIGIN(REGION_TEXT));
7373PROVIDE(_stack_start = ORIGIN(REGION_STACK) + LENGTH(REGION_STACK));
7474PROVIDE(_max_hart_id = 0);
75- PROVIDE(_hart_stack_size = 2K );
75+ PROVIDE(_hart_stack_size = SIZEOF(.stack) / (_max_hart_id + 1) );
7676PROVIDE(_heap_size = 0);
7777
7878SECTIONS
Original file line number Diff line number Diff line change 9090//!
9191//! This symbol defines stack area size for *one* hart.
9292//!
93- //! If omitted this symbol value will default to 2K.
93+ //! If omitted this symbol value will default to `SIZEOF(.stack) / (_max_hart_id + 1)`.
94+ //!
95+ //! Note that due to alignment, each individual stack may differ slightly in
96+ //! size.
9497//!
9598//! ### `_stack_start`
9699//!
You can’t perform that action at this time.
0 commit comments