syscall: enable fast syscall instruction

This commit is contained in:
Michael Shaw 2024-06-27 13:11:50 -04:00
commit d67c828c6f
6 changed files with 39 additions and 7 deletions

View file

@ -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__

View file

@ -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);