1
0
This commit is contained in:
Mark 2025-02-25 19:28:18 -08:00
parent 8bed1288ac
commit 58825f6ae0
Signed by: Mark
GPG Key ID: C6D63995FE72FD80

View File

@ -1,6 +1,6 @@
SECTION .text ; cannot use .data
struc GDTEntry ; spell:disable:line
struc GDTEntry ; spell:disable-line
.limitl resw 1
.basel resw 1
.basem resb 1
@ -26,21 +26,21 @@ gdt_attr:
.accessed equ 1 << 0
;system
; legacy
.tssAvailabe16 equ 0x1 ; spell:disable:line
.tssAvailabe16 equ 0x1 ; spell:disable-line
.ldt equ 0x2
.tssBusy16 equ 0x3
.call16 equ 0x4
.task equ 0x5
.interrupt16 equ 0x6
.trap16 equ 0x7
.tssAvailabe32 equ 0x9 ; spell:disable:line
.tssAvailabe32 equ 0x9 ; spell:disable-line
.tssBusy32 equ 0xB
.call32 equ 0xC
.interrupt32 equ 0xE
.trap32 equ 0xF
; long mode
.ldt32 equ 0x2
.tssAvailabe64 equ 0x9 ; spell:disable:line
.tssAvailabe64 equ 0x9 ; spell:disable-line
.tssBusy64 equ 0xB
.call64 equ 0xC
.interrupt64 equ 0xE