mirror of
https://github.com/apache/nuttx.git
synced 2026-08-16 01:43:15 +00: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:
parent
c4e2d88e6b
commit
875dd46207
1 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue