wip commit

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
2020-01-23 10:29:20 +08:00
parent 3c15bd68d3
commit 95951535e4
20 changed files with 506 additions and 183 deletions

View File

@ -72,7 +72,7 @@ _start:
bgtu a2, t0, abort
#endif // SKIP_MULTICORE
// Allocate stacks
la sp, _stack_start
la sp, _estack
#if !defined(SKIP_MULTICORE)
lui t0, %hi(_hart_stack_size)
add t0, t0, %lo(_hart_stack_size)

View File

@ -78,10 +78,10 @@ SECTIONS
/* fictitious region that represents the memory available for the stack */
.stack (NOLOAD) :
{
_estack = .;
PROVIDE(_stack_start = .);
. += _stack_size;
_sstack = .;
. += _stack_size;
. = ALIGN(4096);
_estack = .;
} > REGION_STACK
/* fictitious region that represents the memory available for the heap */