syscall: enable fast syscall instruction
This commit is contained in:
parent
32d12d09ca
commit
d67c828c6f
6 changed files with 39 additions and 7 deletions
|
|
@ -60,8 +60,8 @@ void gdt_init()
|
|||
gdt_insert(4, GDT_ACCESS_DATA_RING0, 0xC0);
|
||||
gdt_insert(5, GDT_ACCESS_CODE_RING0, 0xA0);
|
||||
gdt_insert(6, GDT_ACCESS_DATA_RING0, 0xC0);
|
||||
gdt_insert(7, GDT_ACCESS_CODE_RING3, 0xA0);
|
||||
gdt_insert(8, GDT_ACCESS_DATA_RING3, 0xC0);
|
||||
gdt_insert(7, GDT_ACCESS_DATA_RING3, 0xC0);
|
||||
gdt_insert(8, GDT_ACCESS_CODE_RING3, 0xA0);
|
||||
|
||||
__gdtr.size = (sizeof(__gdt) - 1);
|
||||
__gdtr.offset = (uint64_t)__gdt;
|
||||
|
|
|
|||
Loading…
Reference in a new issue