svn commit: r243217 - stable/9/sys/boot/i386/common
Andriy Gapon
avg at FreeBSD.org
Sun Nov 18 12:20:12 UTC 2012
Author: avg
Date: Sun Nov 18 12:20:11 2012
New Revision: 243217
URL: http://svnweb.freebsd.org/changeset/base/243217
Log:
MFC r243025: boot: use packed attribute for edd_params* structures
Modified:
stable/9/sys/boot/i386/common/edd.h
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/boot/ (props changed)
Modified: stable/9/sys/boot/i386/common/edd.h
==============================================================================
--- stable/9/sys/boot/i386/common/edd.h Sun Nov 18 12:17:13 2012 (r243216)
+++ stable/9/sys/boot/i386/common/edd.h Sun Nov 18 12:20:11 2012 (r243217)
@@ -62,7 +62,7 @@ struct edd_params {
uint16_t sector_size;
uint16_t edd_params_seg;
uint16_t edd_params_off;
-};
+} __packed;
struct edd_device_path_v3 {
uint16_t key;
@@ -74,12 +74,12 @@ struct edd_device_path_v3 {
uint64_t device_path;
uint8_t reserved2[1];
uint8_t checksum;
-};
+} __packed;
struct edd_params_v3 {
struct edd_params params;
struct edd_device_path_v3 device_path;
-};
+} __packed;
struct edd_device_path_v4 {
uint16_t key;
@@ -91,12 +91,12 @@ struct edd_device_path_v4 {
uint64_t device_path[2];
uint8_t reserved2[1];
uint8_t checksum;
-};
+} __packed;
struct edd_params_v4 {
struct edd_params params;
struct edd_device_path_v4 device_path;
-};
+} __packed;
#define EDD_FLAGS_DMA_BOUNDARY_HANDLING 0x0001
#define EDD_FLAGS_REMOVABLE_MEDIA 0x0002
More information about the svn-src-stable-9
mailing list