Kernel: Align GDT to the size of a Descriptor

This is not actually required by the specification, but it means we
will take the aligned fast-path in QEMU.
This commit is contained in:
Idan Horowitz 2022-01-03 20:45:05 +02:00
parent f0b82c4b17
commit 4f551f54c4
Notes: sideshowbarker 2024-07-17 21:41:39 +09:00

View File

@ -68,7 +68,7 @@ class Processor {
#endif
DescriptorTablePointer m_gdtr;
Descriptor m_gdt[256];
alignas(Descriptor) Descriptor m_gdt[256];
u32 m_gdt_length;
u32 m_cpu;