Add SYSENTER and SYSEXIT instructions
This commit is contained in:
parent
fda3832e3a
commit
7eff4f4ba8
8 changed files with 224 additions and 9 deletions
|
|
@ -175,6 +175,9 @@ extern x86seg gdt, ldt, idt, tr;
|
|||
extern uint32_t cr2, cr3, cr4;
|
||||
extern uint32_t dr[8];
|
||||
|
||||
extern uint16_t sysenter_cs;
|
||||
extern uint32_t sysenter_eip, sysenter_esp;
|
||||
|
||||
|
||||
extern uint16_t cpu_cur_status;
|
||||
|
||||
|
|
@ -294,6 +297,9 @@ void x86_int(int num);
|
|||
void x86_int_sw(int num);
|
||||
int x86_int_sw_rm(int num);
|
||||
|
||||
void sysenter(void);
|
||||
void sysexit(void);
|
||||
|
||||
int divl(uint32_t val);
|
||||
int idivl(int32_t val);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue