[Midnightbsd-cvs] src [8401] trunk/sys/boot/i386/common/edd.h: boot: use packed attribute for edd_params*
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 18 15:32:55 EDT 2016
Revision: 8401
http://svnweb.midnightbsd.org/src/?rev=8401
Author: laffer1
Date: 2016-09-18 15:32:55 -0400 (Sun, 18 Sep 2016)
Log Message:
-----------
boot: use packed attribute for edd_params*
Modified Paths:
--------------
trunk/sys/boot/i386/common/edd.h
Modified: trunk/sys/boot/i386/common/edd.h
===================================================================
--- trunk/sys/boot/i386/common/edd.h 2016-09-18 19:32:30 UTC (rev 8400)
+++ trunk/sys/boot/i386/common/edd.h 2016-09-18 19:32:55 UTC (rev 8401)
@@ -62,7 +62,7 @@
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 @@
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 @@
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 Midnightbsd-cvs
mailing list