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> |
||
|---|---|---|
| .. | ||
| kernel_arch_data.h | ||
| kernel_arch_func.h | ||
| offsets_short_arch.h | ||
| pmp.h | ||