nuttx/arch
Huang Qi b1d97688b7 arch/risc-v: Remove riscv_mhartid
Summary:
This commit removes the riscv_mhartid function and replaces all its
usages with up_cpu_index. The functionality is consolidated into
up_cpu_index which provides a more consistent API for getting the
current CPU/hart ID across different execution modes (machine/supervisor).

Impact:
- Removes riscv_mhartid.S and its references from build systems
- Updates all arch-specific code to use up_cpu_index instead
- Adds more detailed documentation for up_cpu_index behavior
- Changes the implementation of up_cpu_index to use percpu scratch
register in supervisor mode

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-01-14 11:48:40 -03:00
..
arm arm/common: fix KERNEL build vfork 2025-01-14 20:12:31 +08:00
arm64 kasan/kconfig: Add config CONFIG_MM_KASAN_INSTRUMENT 2025-01-14 14:01:48 +08:00
avr arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
ceva arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
dummy
hc arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
mips arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
misoc arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
or1k arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
renesas up_rtc_gettime: add spinlock to protect up_rtc_gettime 2025-01-06 23:07:58 +08:00
risc-v arch/risc-v: Remove riscv_mhartid 2025-01-14 11:48:40 -03:00
sim kasan/kconfig: Add config CONFIG_MM_KASAN_INSTRUMENT 2025-01-14 14:01:48 +08:00
sparc arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
tricore kasan/kconfig: Add config CONFIG_MM_KASAN_INSTRUMENT 2025-01-14 14:01:48 +08:00
x86 kasan/kconfig: Add config CONFIG_MM_KASAN_INSTRUMENT 2025-01-14 14:01:48 +08:00
x86_64 kasan/kconfig: Add config CONFIG_MM_KASAN_INSTRUMENT 2025-01-14 14:01:48 +08:00
xtensa esp32s2: apply wifi deadlock fix from esp32s3 2025-01-14 19:29:28 +08:00
z16 arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
z80 arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
CMakeLists.txt arch/z80: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
Kconfig arch/xtensa: Support __thread and thread_local keywords 2024-12-21 20:49:07 +08:00