risc-v: fix register bug
An aditional parameter for the dtb was added to the init_kernel function call in the elfloader. The corresponding _start entry in the kernel was never updated. Signed-off-by: Oliver Scott <Oliver.Scott@data61.csiro.au>
This commit is contained in:
parent
2f35873885
commit
baad619db3
1 changed files with 3 additions and 3 deletions
|
|
@ -17,8 +17,8 @@
|
|||
.extern trap_entry
|
||||
|
||||
/*
|
||||
* When SMP is enabled, the elfloader passes the hart ID in a4
|
||||
* and logical core ID in a5.
|
||||
* When SMP is enabled, the elfloader passes the hart ID in a6
|
||||
* and logical core ID in a7.
|
||||
*/
|
||||
_start:
|
||||
fence.i
|
||||
|
|
@ -32,7 +32,7 @@ _start:
|
|||
|
||||
#if CONFIG_MAX_NUM_NODES > 1
|
||||
/* setup the per-core stack */
|
||||
mv t0, a5
|
||||
mv t0, a7
|
||||
slli t0, t0, CONFIG_KERNEL_STACK_BITS
|
||||
add sp, sp, t0
|
||||
/* put the stack in sscratch */
|
||||
|
|
|
|||
Loading…
Reference in a new issue