18 lines
269 B
C
18 lines
269 B
C
|
#ifndef __ARCH_H__
|
||
|
#define __ARCH_H__
|
||
|
|
||
|
struct _Context {
|
||
|
struct _AddressSpace *prot;
|
||
|
uint32_t gpr[31];
|
||
|
uint32_t lo, hi;
|
||
|
uint32_t cause, status, epc;
|
||
|
};
|
||
|
|
||
|
#define GPR1 gpr[3]
|
||
|
#define GPR2 gpr[4]
|
||
|
#define GPR3 gpr[5]
|
||
|
#define GPR4 gpr[6]
|
||
|
#define GPRx gpr[1]
|
||
|
|
||
|
#endif
|