syscall: enable fast syscall instruction
This commit is contained in:
parent
32d12d09ca
commit
d67c828c6f
6 changed files with 39 additions and 7 deletions
|
|
@ -14,8 +14,8 @@
|
|||
#define GDT_SEGMENT_CODE_RING0 0x28
|
||||
#define GDT_SEGMENT_DATA_RING0 0x30
|
||||
|
||||
#define GDT_SEGMENT_CODE_RING3 0x38
|
||||
#define GDT_SEGMENT_DATA_RING3 0x40
|
||||
#define GDT_SEGMENT_DATA_RING3 0x38
|
||||
#define GDT_SEGMENT_CODE_RING3 0x40
|
||||
|
||||
#ifndef __ASM__
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@
|
|||
|
||||
#define MSR_APIC_BASE 0x1B
|
||||
|
||||
#define MSR_IA32_EFER 0xC0000080
|
||||
#define MSR_IA32_STAR 0xC0000081
|
||||
#define MSR_IA32_LSTAR 0xC0000082
|
||||
|
||||
#ifndef __ASM__
|
||||
|
||||
uint64_t rdmsr(uint32_t msr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue