Reset the the `gp` register to `_kernel->cpus[i].current` when `CONFIG_USERSPACE` is enabled on exception to keep it sane. Updated the testcase to test both `CONFIG_RISCV_GP` and `CONFIG_RISCV_CURRENT_VIA_GP`. Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com> |
||
|---|---|---|
| .. | ||
| arc | ||
| arm | ||
| arm64 | ||
| common | ||
| mips | ||
| nios2 | ||
| posix | ||
| riscv | ||
| sparc | ||
| x86 | ||
| xtensa | ||
| archs.yml | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Kconfig.v1 | ||
| Kconfig.v2 | ||