zephyr/arch/riscv/core
Yong Cong Sin 033804e266 arch: riscv: support CONFIG_USERSPACE in CONFIG_RISCV_CURRENT_VIA_GP
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>
2024-11-28 12:51:09 +01:00
..
offsets arch: riscv: optionally stores a pointer to csf in struct arch_esf 2024-09-10 11:43:40 +02:00
asm_macros.inc
CMakeLists.txt arch: riscv: smp: allow other IPI implementation 2024-11-16 13:34:10 -05:00
coredump.c riscv: support dumping privilege stack during coredump 2024-09-21 11:29:39 +02:00
cpu_idle.c arch: use same syntax for custom arch calls 2024-08-12 12:43:36 +02:00
elf.c llext: Add RISC-V arch-specific relocations 2024-10-03 21:59:42 +01:00
fatal.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
fpu.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
fpu.S build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
ipi_clint.c arch: riscv64: smp: get msip base address from dts 2024-11-27 06:58:57 -05:00
ipi.c arch: riscv: smp: allow other IPI implementation 2024-11-16 13:34:10 -05:00
irq_manage.c arch: riscv: add an option for empty spurious interrupt handler 2024-09-02 12:35:57 -04:00
irq_offload.c arch: initialize irq_offload during boot, do not use SYS_INIT 2024-09-17 20:05:22 -04:00
isr.S arch: riscv: support CONFIG_USERSPACE in CONFIG_RISCV_CURRENT_VIA_GP 2024-11-28 12:51:09 +01:00
pmp.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
pmp.S
prep_c.c cache: add new interface arch_cache_init() for initializing cache 2024-09-17 20:05:22 -04:00
reboot.c
reset.S arch: riscv: fill all IRQ stacks with 0xAA 2024-09-13 09:17:34 +02:00
semihost.c
smp.c init: support per-core init hook 2024-11-16 14:04:25 -05:00
stacktrace.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
switch.S
thread.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
tls.c
userspace.S
vector_table.ld