diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-03 20:45:05 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-04 19:08:07 +0200 |
commit | 4f551f54c4fac000c7e04037c1d3a9e39e882a45 (patch) | |
tree | 1bd74cdb45b7b45651edde8ad504ddc2f54ec7b5 /Kernel/Arch/x86 | |
parent | f0b82c4b17cd4e72b76b778d3a23b1e7304ce088 (diff) | |
download | serenity-4f551f54c4fac000c7e04037c1d3a9e39e882a45.zip |
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.
Diffstat (limited to 'Kernel/Arch/x86')
-rw-r--r-- | Kernel/Arch/x86/Processor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Arch/x86/Processor.h b/Kernel/Arch/x86/Processor.h index e49b34cb3c..f1946ebd46 100644 --- a/Kernel/Arch/x86/Processor.h +++ b/Kernel/Arch/x86/Processor.h @@ -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; |