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:
Abdelatif Guettouche 2022-04-07 20:23:43 +02:00 committed by Xiang Xiao
parent c4e2d88e6b
commit 875dd46207

View File

@ -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 */