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#ifdef CONFIG_EXTRA_EXCEPTION_INFO
51typedef struct _callee_saved _callee_saved_t;
54#if defined(CONFIG_RISCV_SOC_HAS_ISR_STACKING)
55 SOC_ISR_STACKING_ESF_DECLARE;
63#if !defined(CONFIG_RISCV_ISA_RV32E)
76#if !defined(CONFIG_RISCV_ISA_RV32E)
86#ifdef CONFIG_USERSPACE
90#ifdef CONFIG_EXTRA_EXCEPTION_INFO
94#ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE
95 struct soc_esf soc_context;
100#ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE
101typedef struct soc_esf soc_esf_t;
Exception Stack Frame.
Definition exception.h:60
unsigned long a0
Definition exception.h:35
unsigned long ra
Definition exception.h:21
unsigned long a4
Definition exception.h:74
unsigned long t0
Definition exception.h:24
unsigned long a3
Definition exception.h:38
unsigned long a6
Definition exception.h:77
unsigned long a1
Definition exception.h:36
unsigned long mepc
Definition exception.h:81
unsigned long mstatus
Definition exception.h:82
unsigned long t6
Definition exception.h:30
unsigned long a7
Definition exception.h:78
unsigned long t4
Definition exception.h:28
unsigned long s0
Definition exception.h:84
unsigned long sp
Definition exception.h:87
unsigned long t2
Definition exception.h:26
unsigned long a5
Definition exception.h:75
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