Karg
v0.2.0
The kernel of CargOS
trap.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
types.h
>
4
5
typedef
struct
{
6
usize
sstatus
;
7
usize
sepc
;
8
usize
scause
;
9
usize
stval
;
10
usize
a0
;
11
usize
a1
;
12
usize
a2
;
13
usize
a3
;
14
usize
a4
;
15
usize
a5
;
16
usize
a6
;
17
usize
a7
;
18
}
trapframe_t
;
trapframe_t
Definition:
trap.h:5
trapframe_t::sstatus
usize sstatus
Definition:
trap.h:6
trapframe_t::stval
usize stval
Definition:
trap.h:9
trapframe_t::a7
usize a7
Definition:
trap.h:17
trapframe_t::scause
usize scause
Definition:
trap.h:8
trapframe_t::a0
usize a0
Definition:
trap.h:10
trapframe_t::a2
usize a2
Definition:
trap.h:12
trapframe_t::a5
usize a5
Definition:
trap.h:15
trapframe_t::a3
usize a3
Definition:
trap.h:13
trapframe_t::sepc
usize sepc
Definition:
trap.h:7
trapframe_t::a6
usize a6
Definition:
trap.h:16
trapframe_t::a4
usize a4
Definition:
trap.h:14
trapframe_t::a1
usize a1
Definition:
trap.h:11
types.h
usize
__UINTPTR_TYPE__ usize
Definition:
types.h:28
include
arch
riscv
common
trap.h
Generated by
1.9.1