mirror of
https://github.com/apache/nuttx.git
synced 2026-06-09 02:44:53 +08:00
riscv/riscv_exception_commin.S: Don't call riscv_hartid in single core
mode. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
committed by
Xiang Xiao
parent
c4e2d88e6b
commit
875dd46207
@@ -95,7 +95,11 @@ exception_common:
|
||||
/* Offset to hartid */
|
||||
|
||||
mv s0, a0 /* save cause */
|
||||
#ifdef CONFIG_SMP
|
||||
jal x1, riscv_mhartid /* get hartid */
|
||||
#else
|
||||
li a0, 0
|
||||
#endif
|
||||
|
||||
/* Switch to interrupt stack */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user