14#ifndef ZEPHYR_INCLUDE_ARCH_RISCV_ERROR_H_
15#define ZEPHYR_INCLUDE_ARCH_RISCV_ERROR_H_
25#ifdef CONFIG_USERSPACE
38#define ARCH_EXCEPT(reason_p) do { \
39 if (k_is_user_context()) { \
40 arch_syscall_invoke1(reason_p, \
41 K_SYSCALL_USER_FAULT); \
44 z_impl_user_fault(reason_p); \
49#define ARCH_EXCEPT(reason_p) do { \
50 z_impl_user_fault(reason_p); \
56#include <syscalls/error.h>
RISCV specific syscall header.
RISCV public exception handling.
void user_fault(unsigned int reason)