summaryrefslogtreecommitdiff
path: root/Kernel/TSS.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-15 12:30:48 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-15 12:30:48 +0100
commit022f7790db45ba61740b41a4807d9b7d2a732916 (patch)
tree1fc8e5883e6beaac1e4d3d3bda1a22b94bd1e792 /Kernel/TSS.h
parentfbcc8ab840aaa212934da0082a039038c8a81e53 (diff)
downloadserenity-022f7790db45ba61740b41a4807d9b7d2a732916.zip
Use modern C++ attributes instead of __attribute__ voodoo.
This is quite nice, although I wish [[gnu::always_inline]] implied inline. Also "gnu::" is kind of a wart, but whatcha gonna do.
Diffstat (limited to 'Kernel/TSS.h')
-rw-r--r--Kernel/TSS.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/TSS.h b/Kernel/TSS.h
index 676750e454..f3e370439e 100644
--- a/Kernel/TSS.h
+++ b/Kernel/TSS.h
@@ -2,7 +2,7 @@
#include <AK/Types.h>
-struct TSS32 {
+struct [[gnu::packed]] TSS32 {
word backlink, __blh;
dword esp0;
word ss0, __ss0h;
@@ -20,4 +20,4 @@ struct TSS32 {
word gs, __gsh;
word ldt, __ldth;
word trace, iomapbase;
-} PACKED;
+};