nuttx/arch/risc-v/src
Inochi Amaoto caeb1757f6 arch/risc-v: Improve the SBI function handle
To simplify processing, the existed SBI function code is just
invoking the ecall and return the error value. This omits
potential return value in "a1", which is defined in SBI doc.
Add the "sbiret" struct so it can handle all the return value.

In addition, there are some minor improvement:
1. move the SBI related interface to a separate file to make it clean.
2. add all necessary SBI ecall interface macro until version 2.0.
3. add an utilty function to convert sbi error numner to standard
error number.

Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
2024-06-19 20:55:10 +08:00
..
bl602 arch/risc-v: initial qemu-rv64ilp32 support 2024-06-14 19:50:00 +08:00
bl808 arch/risc-v: remove g_cpux_idlestack 2024-05-11 17:57:59 +02:00
c906 arch/risc-v: remove g_cpux_idlestack 2024-05-11 17:57:59 +02:00
cmake arch/risc-v: add rv64ilp32 toolchain 2024-06-14 19:50:00 +08:00
common arch/risc-v: Improve the SBI function handle 2024-06-19 20:55:10 +08:00
esp32c3 esp32[c3|c6|h2]: Add SPI Slave support 2024-06-12 22:53:19 -03:00
esp32c3-legacy arch/risc-v: initial qemu-rv64ilp32 support 2024-06-14 19:50:00 +08:00
esp32c6 esp32[c3|c6|h2]: Add SPI Slave support 2024-06-12 22:53:19 -03:00
esp32h2 esp32[c3|c6|h2]: Add SPI Slave support 2024-06-12 22:53:19 -03:00
fe310 arch/risc-v: initial qemu-rv64ilp32 support 2024-06-14 19:50:00 +08:00
hpm6000 arch/risc-v: initial qemu-rv64ilp32 support 2024-06-14 19:50:00 +08:00
hpm6750 arch/risc-v: initial qemu-rv64ilp32 support 2024-06-14 19:50:00 +08:00
jh7110 arch/risc-v: remove g_cpux_idlestack 2024-05-11 17:57:59 +02:00
k210 arch/risc-v: revise MMIO for rv64ilp32 2024-06-18 10:50:49 +08:00
k230 risc-v/k230: initial rv64ilp32 support 2024-06-19 15:32:19 +08:00
litex arch/litex/litex_arch_alarm: Support tickless schedular with arch alarm. 2024-05-31 10:21:44 +08:00
mpfs arch/risc-v: revise MMIO for rv64ilp32 2024-06-18 10:50:49 +08:00
nuttsbi arch/risc-v: implement sbi_ipi_send 2024-05-02 16:08:13 +08:00
opensbi risc-v/mpfs/opensbi: update opensbi to version 1.3.1 2023-11-21 04:04:47 -08:00
qemu-rv arch/risc-v: Add support for S-mode flat build 2024-06-14 19:52:00 +08:00
rv32m1 arch/risc-v: initial qemu-rv64ilp32 support 2024-06-14 19:50:00 +08:00
sg2000 boards/risc-v: Add support for Milk-V Duo S SBC (SOPHGO SG2000 SoC) 2024-06-18 00:13:35 +08:00
.gitignore
CMakeLists.txt build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
Makefile arch/risc-v: decouple Per-CPU scratch with ARCH_USE_S_MODE 2024-04-25 09:48:59 -03:00