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 riscv: abstract RV32E register access 2022-06-23 13:12:05 -04:00
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 include: types: remove ulong_t 2022-09-06 18:16:33 +02:00
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 arch: riscv: Align semihost_exec function at 16-byte boundary 2022-08-08 10:52:34 +02:00
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 riscv: integrate the new FPU context switching support 2023-01-24 15:26:18 +01:00
thread.c arch: deprecate _current 2024-11-23 20:12:24 -05:00
tls.c
userspace.S
vector_table.ld arch: riscv: core: Place vectors section through zephyr_linker_sources() 2022-09-08 10:39:31 +02:00