summaryrefslogtreecommitdiff
path: root/Kernel/Arch/x86
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-01-03 20:45:05 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-04 19:08:07 +0200
commit4f551f54c4fac000c7e04037c1d3a9e39e882a45 (patch)
tree1bd74cdb45b7b45651edde8ad504ddc2f54ec7b5 /Kernel/Arch/x86
parentf0b82c4b17cd4e72b76b778d3a23b1e7304ce088 (diff)
downloadserenity-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.h2
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;