summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/gdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/gdt.c')
-rw-r--r--src/arch/x86/gdt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/x86/gdt.c b/src/arch/x86/gdt.c
index c81bd61cd55a..baf125cf1e80 100644
--- a/src/arch/x86/gdt.c
+++ b/src/arch/x86/gdt.c
@@ -15,6 +15,7 @@
#include <types.h>
#include <string.h>
+#include <compiler.h>
#include <cbmem.h>
#include <console/console.h>
#include <cpu/x86/gdt.h>
@@ -27,7 +28,7 @@ struct gdtarg {
#else
u32 base;
#endif
-} __attribute__((packed));
+} __packed;
/* Copy GDT to new location and reload it.
* FIXME: We only do this for BSP CPU.