diff options
author | dzwdz | 2023-09-15 00:29:11 +0200 |
---|---|---|
committer | dzwdz | 2023-09-15 00:29:11 +0200 |
commit | 458978e7b8a6d50566fc8b68558f76f6b0465c52 (patch) | |
tree | 0b2decb03e5f07fa790d7add0fc16679472012de /src/kernel/arch/amd64/boot64.s | |
parent | 8757321821d05d2958160e1428250daf19c119e9 (diff) |
kern: fix GDT order for 64bit sysret
Diffstat (limited to 'src/kernel/arch/amd64/boot64.s')
-rw-r--r-- | src/kernel/arch/amd64/boot64.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/arch/amd64/boot64.s b/src/kernel/arch/amd64/boot64.s index af05ffe..9bd9f0c 100644 --- a/src/kernel/arch/amd64/boot64.s +++ b/src/kernel/arch/amd64/boot64.s @@ -1,7 +1,7 @@ .global boot64 boot64: lgdt (lgdt_arg) // try reloading gdt again - mov $(5 << 3 | 3), %ax // SEG_TSS + mov $(6 << 3 | 3), %ax // SEG_TSS ltr %ax push %rdi // preserve multiboot struct |