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/boot.h | |
parent | 8757321821d05d2958160e1428250daf19c119e9 (diff) |
kern: fix GDT order for 64bit sysret
Diffstat (limited to 'src/kernel/arch/amd64/boot.h')
-rw-r--r-- | src/kernel/arch/amd64/boot.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/kernel/arch/amd64/boot.h b/src/kernel/arch/amd64/boot.h index 7c36cd3..fac4ab6 100644 --- a/src/kernel/arch/amd64/boot.h +++ b/src/kernel/arch/amd64/boot.h @@ -3,12 +3,13 @@ enum gdt_segs { SEG_null, /* order dictated by SYSENTER */ - SEG_r0code, - SEG_r0data, - SEG_r3code, - SEG_r3data, - SEG_TSS, - SEG_TSS2, + SEG_r0code = 1, + SEG_r0data = 2, + SEG_r3code32 = 3, + SEG_r3data = 4, + SEG_r3code = 5, + SEG_TSS = 6, + SEG_TSS2 = 7, SEG_end }; |