mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
baremetal: fix heap and stack position in preparation for CLI arguments
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -11,7 +11,7 @@ __asm__(
|
||||
"lkmc_cpu_not_0:\n"
|
||||
" cmp r0, 1\n"
|
||||
" bne .Lsleep_forever\n"
|
||||
" ldr sp, =(stack_top - 0x1000)\n"
|
||||
" ldr sp, =(lkmc_stack_top - 0x1000)\n"
|
||||
" bl main_cpu1\n"
|
||||
".Lsleep_forever:\n"
|
||||
" wfe\n"
|
||||
|
||||
Reference in New Issue
Block a user