zephyr/arch
TOKITA Hiroshi b674bf6e71 arch: riscv: add ARCH_HAS_SINGLE_THREAD_SUPPORT
Enable single-threading support for the riscv architecture.

Add z_riscv_switch_to_main_no_multithreading function for
supporting single-threading.

The single-threading does not work with enabling PMP_STACK_GUARD.
It is because single-threading does not use context-switching.
But the privileged mode transition that PMP depends on implicitly
presupposes using context-switching. It is a contradiction.
Thus, disable PMP_STACK_GUARD when MULTITHREADING is not enabled.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2023-05-12 09:56:40 +02:00
..
arc ARC: tweak _st32_huge_offset macro to have same behaviour with GNU & MWDT 2023-05-04 22:50:14 +09:00
arm arch: arm: Remove unused absolute symbols 2023-04-18 10:51:28 -04:00
arm64 arm64: cache: Enable full inlining of the cache ops 2023-04-20 14:56:09 -04:00
common revert: "linker: rom_start_offset: add to address" 2023-03-30 18:19:32 -04:00
mips include: types: remove ulong_t 2022-09-06 18:16:33 +02:00
nios2 arch: nios2: Remove unused absolute symbols 2023-04-18 10:51:28 -04:00
posix arch posix: posix_cheats.h main() type changed in comment 2023-04-14 09:55:48 +02:00
riscv arch: riscv: add ARCH_HAS_SINGLE_THREAD_SUPPORT 2023-05-12 09:56:40 +02:00
sparc arch: sparc: Remove unused absolute symbols 2023-04-18 10:51:28 -04:00
x86 arch: x86: make sys_arch_reboot as weak function 2023-05-10 09:21:15 -05:00
xtensa xtensa: tls: Fix invalid reference 2023-05-11 17:38:16 -04:00
CMakeLists.txt
Kconfig arch: riscv enable flash config 2023-02-28 10:29:03 +01:00