summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r--sys/arch/amd64/include/fpu.h4
-rw-r--r--sys/arch/amd64/include/segments.h10
-rw-r--r--sys/arch/amd64/include/tss.h4
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/arch/amd64/include/fpu.h b/sys/arch/amd64/include/fpu.h
index 94a259b5abf..612e1bb0137 100644
--- a/sys/arch/amd64/include/fpu.h
+++ b/sys/arch/amd64/include/fpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpu.h,v 1.6 2010/09/29 15:11:31 joshe Exp $ */
+/* $OpenBSD: fpu.h,v 1.7 2010/11/20 20:11:17 miod Exp $ */
/* $NetBSD: fpu.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $ */
#ifndef _AMD64_FPU_H_
@@ -26,7 +26,7 @@ struct fxsave64 {
u_int64_t fx_st[8][2]; /* 8 normal FP regs */
u_int64_t fx_xmm[16][2]; /* 16 SSE2 registers */
u_int8_t fx_unused3[96];
-} __attribute__((packed));
+} __packed;
struct savefpu {
struct fxsave64 fp_fxsave; /* see above */
diff --git a/sys/arch/amd64/include/segments.h b/sys/arch/amd64/include/segments.h
index 87650c8388a..1325f2cd0c6 100644
--- a/sys/arch/amd64/include/segments.h
+++ b/sys/arch/amd64/include/segments.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: segments.h,v 1.8 2010/11/13 04:16:42 guenther Exp $ */
+/* $OpenBSD: segments.h,v 1.9 2010/11/20 20:11:17 miod Exp $ */
/* $NetBSD: segments.h,v 1.1 2003/04/26 18:39:47 fvdl Exp $ */
/*-
@@ -105,7 +105,7 @@ struct sys_segment_descriptor {
/*BITFIELDTYPE*/ u_int64_t sd_xx2:8; /* reserved */
/*BITFIELDTYPE*/ u_int64_t sd_zero:5; /* must be zero */
/*BITFIELDTYPE*/ u_int64_t sd_xx3:19; /* reserved */
-} __attribute__((packed));
+} __packed;
/*
* Below is used for cs, ds, etc.
@@ -122,7 +122,7 @@ struct mem_segment_descriptor {
unsigned int sd_def32:1; /* default 32 vs 16 bit size */
unsigned int sd_gran:1; /* limit granularity (byte/page) */
unsigned int sd_hibase:8; /* segment base address (msb) */
-} __attribute__((packed));
+} __packed;
/*
* Gate descriptors (e.g. indirect descriptors)
@@ -139,7 +139,7 @@ struct gate_descriptor {
/*BITFIELDTYPE*/ u_int64_t gd_xx2:8; /* reserved */
/*BITFIELDTYPE*/ u_int64_t gd_zero:5; /* must be zero */
/*BITFIELDTYPE*/ u_int64_t gd_xx3:19; /* reserved */
-} __attribute__((packed));
+} __packed;
/*
* region descriptors, used to load gdt/idt tables before segments yet exist.
@@ -147,7 +147,7 @@ struct gate_descriptor {
struct region_descriptor {
u_int16_t rd_limit; /* segment extent */
u_int64_t rd_base; /* base address */
-} __attribute__((packed));
+} __packed;
#ifdef _KERNEL
#if 0
diff --git a/sys/arch/amd64/include/tss.h b/sys/arch/amd64/include/tss.h
index 22b44bca8b2..f3ee6fdf705 100644
--- a/sys/arch/amd64/include/tss.h
+++ b/sys/arch/amd64/include/tss.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tss.h,v 1.2 2010/11/13 04:16:42 guenther Exp $ */
+/* $OpenBSD: tss.h,v 1.3 2010/11/20 20:11:17 miod Exp $ */
/* $NetBSD: tss.h,v 1.1 2003/04/26 18:39:49 fvdl Exp $ */
/*
@@ -57,6 +57,6 @@ struct x86_64_tss {
u_int32_t tss_reserved5;
u_int16_t tss_reserved6;
u_int16_t tss_iobase;
-} __attribute__((packed));
+} __packed;
#endif /* _AMD64_TSS_H_ */