mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 12:08:36 +08:00
riscv/qemu-rv: skip reloading mhartid
As a0 already has mhartid passed by SBI or ZSBL, no need to load it again here. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
parent
522cec4db9
commit
a6c7e68b5d
1 changed files with 1 additions and 5 deletions
|
@ -43,11 +43,7 @@
|
|||
__start:
|
||||
|
||||
/* Preserve a1 as it contains the pointer to DTB */
|
||||
/* Load mhartid (cpuid) */
|
||||
|
||||
#ifndef CONFIG_ARCH_USE_S_MODE
|
||||
csrr a0, CSR_MHARTID
|
||||
#endif
|
||||
/* Preserve a0 as it has mhartid */
|
||||
|
||||
/* Load the number of CPUs that the kernel supports */
|
||||
li t1, CONFIG_SMP_NCPUS
|
||||
|
|
Loading…
Reference in a new issue