15#ifndef ZEPHYR_INCLUDE_ARCH_RISCV_EXCEPTION_H_
16#define ZEPHYR_INCLUDE_ARCH_RISCV_EXCEPTION_H_
22#ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE
23#include <soc_context.h>
26#ifdef CONFIG_RISCV_SOC_HAS_ISR_STACKING
27#include <soc_isr_stacking.h>
42#ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE
48#if defined(CONFIG_RISCV_SOC_HAS_ISR_STACKING)
49 SOC_ISR_STACKING_ESF_DECLARE;
57#if !defined(CONFIG_RISCV_ISA_RV32E)
70#if !defined(CONFIG_RISCV_ISA_RV32E)
80#ifdef CONFIG_USERSPACE
84#ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE
85 struct soc_esf soc_context;
90#ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE
91typedef struct soc_esf soc_esf_t;
Exception Stack Frame.
Definition: exception.h:57
unsigned long a0
Definition: exception.h:35
unsigned long ra
Definition: exception.h:21
unsigned long a4
Definition: exception.h:68
unsigned long t0
Definition: exception.h:24
unsigned long a3
Definition: exception.h:38
unsigned long a6
Definition: exception.h:71
unsigned long a1
Definition: exception.h:36
unsigned long mepc
Definition: exception.h:75
unsigned long mstatus
Definition: exception.h:76
unsigned long t6
Definition: exception.h:30
unsigned long a7
Definition: exception.h:72
unsigned long t4
Definition: exception.h:28
unsigned long s0
Definition: exception.h:78
unsigned long sp
Definition: exception.h:81
unsigned long t2
Definition: exception.h:26
unsigned long a5
Definition: exception.h:69
unsigned long t5
Definition: exception.h:29
unsigned long a2
Definition: exception.h:37
unsigned long t1
Definition: exception.h:25
unsigned long t3
Definition: exception.h:27