riscv64-npc: enable RVM
This commit is contained in:
parent
198ce90352
commit
89939ad7a2
14 changed files with 22 additions and 193 deletions
14
am/include/arch/riscv64-npc.h
Normal file
14
am/include/arch/riscv64-npc.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#ifndef ARCH_H__
|
||||
#define ARCH_H__
|
||||
|
||||
struct Context {
|
||||
// TODO: fix the order of these members to match trap.S
|
||||
uintptr_t mepc, mcause, gpr[32], mstatus;
|
||||
};
|
||||
|
||||
#define GPR1 gpr[17] // a7
|
||||
#define GPR2 gpr[0]
|
||||
#define GPR3 gpr[0]
|
||||
#define GPR4 gpr[0]
|
||||
#define GPRx gpr[0]
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue