TianoCore EDK2 master
|
#include <Register/RiscV64/RiscVImpl.h>
Go to the source code of this file.
Data Structures | |
struct | SMODE_TRAP_REGISTERS |
Functions | |
VOID | SupervisorModeTrap (VOID) |
RISC-V Exception Handler library definition file.
Copyright (c) 2019-2022, Hewlett Packard Enterprise Development LP. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_a0 10 |
Definition at line 38 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_a1 11 |
Definition at line 39 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_a2 12 |
Definition at line 40 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_a3 13 |
Definition at line 41 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_a4 14 |
Definition at line 42 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_a5 15 |
Definition at line 43 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_a6 16 |
Definition at line 44 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_a7 17 |
Definition at line 45 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_gp 3 |
Definition at line 31 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_last 35 |
Definition at line 63 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_OFFSET | ( | x | ) | ((SMODE_TRAP_REGS_##x) * __SIZEOF_POINTER__) |
Definition at line 65 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_ra 1 |
Definition at line 29 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s0 8 |
Definition at line 36 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s1 9 |
Definition at line 37 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s10 26 |
Definition at line 54 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s11 27 |
Definition at line 55 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s2 18 |
Definition at line 46 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s3 19 |
Definition at line 47 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s4 20 |
Definition at line 48 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s5 21 |
Definition at line 49 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s6 22 |
Definition at line 50 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s7 23 |
Definition at line 51 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s8 24 |
Definition at line 52 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_s9 25 |
Definition at line 53 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_sepc 32 |
Definition at line 60 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_SIZE SMODE_TRAP_REGS_OFFSET(last) |
Definition at line 66 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_sp 2 |
Definition at line 30 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_sstatus 33 |
Definition at line 61 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_stval 34 |
Definition at line 62 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_t0 5 |
Definition at line 33 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_t1 6 |
Definition at line 34 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_t2 7 |
Definition at line 35 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_t3 28 |
Definition at line 56 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_t4 29 |
Definition at line 57 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_t5 30 |
Definition at line 58 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_t6 31 |
Definition at line 59 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_tp 4 |
Definition at line 32 of file CpuExceptionHandlerLib.h.
#define SMODE_TRAP_REGS_zero 0 |
Definition at line 28 of file CpuExceptionHandlerLib.h.
VOID SupervisorModeTrap | ( | VOID | ) |
Trap Handler for S-mode