baremetal: fix heap and stack position in preparation for CLI arguments

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-04-01 02:00:01 +00:00
parent 6bb20c0386
commit e25e79c26b
9 changed files with 58 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ __asm__(
" bne .Lsleep_forever\n"
/* Prepare the stack for CPU1. This is what we need
* this assembly function for. */
" ldr x0, =(stack_top - 0x1000)\n"
" ldr x0, =(lkmc_stack_top - 0x1000)\n"
" mov sp, x0\n"
" bl main_cpu1\n"
".Lsleep_forever:\n"