xinyangli
8e4feb4010
NJU-ProjectN/abstract-machine 3348db971fd860be5cb28e21c18f9d0e65d0c96a Merge pull request #8 from Jasonyanyusong/master
17 lines
270 B
C
17 lines
270 B
C
#ifndef ARCH_H__
|
|
#define ARCH_H__
|
|
|
|
struct Context {
|
|
void *cr3;
|
|
uint32_t ds, eax, ebx, ecx, edx,
|
|
esp0, esi, edi, ebp,
|
|
eip, cs, eflags, esp, ss3;
|
|
};
|
|
|
|
#define GPR1 eax
|
|
#define GPR2 ebx
|
|
#define GPR3 ecx
|
|
#define GPR4 edx
|
|
#define GPRx eax
|
|
|
|
#endif
|