hyptrap
ASSYM(HYP_TRAP_SEPC, offsetof(struct hyptrap, sepc));
ASSYM(HYP_TRAP_SCAUSE, offsetof(struct hyptrap, scause));
ASSYM(HYP_TRAP_STVAL, offsetof(struct hyptrap, stval));
ASSYM(HYP_TRAP_HTVAL, offsetof(struct hyptrap, htval));
ASSYM(HYP_TRAP_HTINST, offsetof(struct hyptrap, htinst));
void vmm_unpriv_trap(struct hyptrap *, uint64_t tmp);
struct hyptrap *trap)
register struct hyptrap * htrap asm("a0");
struct hyptrap *trap)
bzero(trap, sizeof(struct hyptrap));
struct hyptrap trap;