abstract-machine/am/include/arch/riscv64-mycpu.h
2021-07-13 16:59:47 +08:00

16 lines
264 B
C

#ifndef ARCH_H__
#define ARCH_H__
struct Context {
// TODO: fix the order of these members to match trap.S
uintptr_t epc, cause, gpr[32], status;
};
#define GPR1 gpr[0]
#define GPR2 gpr[0]
#define GPR3 gpr[0]
#define GPR4 gpr[0]
#define GPRx gpr[0]
#endif