1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +00:00

Kernel: Use enum instead of magic numbers for GDT descriptor types

Some of the enum members were also renamed to reflect the fact that the
segment sizes are not necessarily 32bit (64bit on x86_64).
This commit is contained in:
Idan Horowitz 2022-01-02 17:51:17 +02:00
parent 2066491f6e
commit e424e3b88c
2 changed files with 7 additions and 7 deletions

View file

@ -1222,7 +1222,7 @@ UNMAP_AFTER_INIT void Processor::gdt_init()
tss_descriptor.operation_size64 = 0;
tss_descriptor.operation_size32 = 1;
tss_descriptor.descriptor_type = 0;
tss_descriptor.type = 9;
tss_descriptor.type = Descriptor::SystemType::AvailableTSS;
write_gdt_entry(GDT_SELECTOR_TSS, tss_descriptor); // tss
#if ARCH(X86_64)