nuttx/arch/risc-v
Ville Juven 370152f3ba RISC-V: Move mhartid to own assembly macro+function
Hartid and cpuindex are not the same thing. Hartid is needed regardless
of SMP, for external interrupt handling etc.

SMP needs cpuindex which might not be index == hartid, so both are
needed. IMO it is clearer to provide separate API for both.

Currently the implementation of up_cpu_index is done a bit lazily,
because it assumes hartid == cpu index, but this is not 100% accurate,
so it is still missing some logic.
2022-04-13 12:00:40 +02:00
..
include RISC-V: Combine 3 variables that depend on CPU amount into one 2022-04-12 01:59:35 +08:00
src RISC-V: Move mhartid to own assembly macro+function 2022-04-13 12:00:40 +02:00
Kconfig arch/riscv: Move toolchain config to arch/risc-v/Kconfig like xtensa 2022-04-12 21:01:14 +03:00