diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2007-11-15 03:39:50 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2007-11-15 03:39:50 +0000 |
commit | 4e3db8c7ef33a045666d38dd5bad19322e5a0622 (patch) | |
tree | 89c333ab469bf59c8889b321c6b5d122d6d92a25 /sys | |
parent | 8d3b7da0d8308360af956d2b6534b843755258ad (diff) |
oops, processor structs need to be __packed.
prompted by deraadt
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/include/smbiosvar.h | 4 | ||||
-rw-r--r-- | sys/arch/i386/include/smbiosvar.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/amd64/include/smbiosvar.h b/sys/arch/amd64/include/smbiosvar.h index d179b8754d3..9334959298f 100644 --- a/sys/arch/amd64/include/smbiosvar.h +++ b/sys/arch/amd64/include/smbiosvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smbiosvar.h,v 1.4 2007/11/15 03:34:46 marco Exp $ */ +/* $OpenBSD: smbiosvar.h,v 1.5 2007/11/15 03:39:49 marco Exp $ */ /* * Copyright (c) 2006 Gordon Willem Klok <gklok@cogeco.ca> * Copyright (c) 2005 Jordan Hargrave @@ -205,7 +205,7 @@ struct smbios_cpu { u_int8_t cpu_core_enabled; u_int8_t cpu_thread_count; u_int16_t cpu_characteristics; -}; +} __packed; /* * SMBIOS Structure Type 38 "IPMI Information" diff --git a/sys/arch/i386/include/smbiosvar.h b/sys/arch/i386/include/smbiosvar.h index d179b8754d3..9334959298f 100644 --- a/sys/arch/i386/include/smbiosvar.h +++ b/sys/arch/i386/include/smbiosvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smbiosvar.h,v 1.4 2007/11/15 03:34:46 marco Exp $ */ +/* $OpenBSD: smbiosvar.h,v 1.5 2007/11/15 03:39:49 marco Exp $ */ /* * Copyright (c) 2006 Gordon Willem Klok <gklok@cogeco.ca> * Copyright (c) 2005 Jordan Hargrave @@ -205,7 +205,7 @@ struct smbios_cpu { u_int8_t cpu_core_enabled; u_int8_t cpu_thread_count; u_int16_t cpu_characteristics; -}; +} __packed; /* * SMBIOS Structure Type 38 "IPMI Information" |