1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:07:34 +00:00

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

View file

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