14#ifndef ZEPHYR_INCLUDE_ARCH_RISCV_ERROR_H_
15#define ZEPHYR_INCLUDE_ARCH_RISCV_ERROR_H_
25#ifdef CONFIG_USERSPACE
27#define ARCH_EXCEPT(reason_p) do { \
28 if (k_is_user_context()) { \
29 arch_syscall_invoke1(reason_p, \
30 K_SYSCALL_USER_FAULT); \
33 arch_syscall_invoke1(reason_p, \
34 RV_ECALL_RUNTIME_EXCEPT);\
39#define ARCH_EXCEPT(reason_p) \
40 arch_syscall_invoke1(reason_p, RV_ECALL_RUNTIME_EXCEPT)
45#include <zephyr/syscalls/error.h>
RISCV specific syscall header.
void user_fault(unsigned int reason)
RISCV public exception handling.