NJU-ProjectN/abstract-machine ics2023 initialized
NJU-ProjectN/abstract-machine 3348db971fd860be5cb28e21c18f9d0e65d0c96a Merge pull request #8 from Jasonyanyusong/master
This commit is contained in:
parent
2824efad33
commit
8e4feb4010
129 changed files with 9017 additions and 0 deletions
17
abstract-machine/am/include/arch/x86-nemu.h
Normal file
17
abstract-machine/am/include/arch/x86-nemu.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef ARCH_H__
|
||||
#define ARCH_H__
|
||||
|
||||
struct Context {
|
||||
// TODO: fix the order of these members to match trap.S
|
||||
uintptr_t esi, ebx, eax, eip, edx, eflags, ecx, cs, esp, edi, ebp;
|
||||
void *cr3;
|
||||
int irq;
|
||||
};
|
||||
|
||||
#define GPR1 eax
|
||||
#define GPR2 eip
|
||||
#define GPR3 eip
|
||||
#define GPR4 eip
|
||||
#define GPRx eip
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue