Added missing packed attributes on disk_identifier.

This commit is contained in:
Alex Smith
2012-07-20 17:14:17 +01:00
parent 12bd7812dd
commit 1b41387b5f
+11 -11
View File
@@ -34,41 +34,41 @@ typedef struct disk_identifier {
union { union {
struct { struct {
uint16 base_address; uint16 base_address;
} legacy; } _PACKED legacy;
struct { struct {
uint8 bus; uint8 bus;
uint8 slot; uint8 slot;
uint8 function; uint8 function;
} pci; } _PACKED pci;
} bus; } bus;
union { union {
struct { struct {
bool master; bool master;
} ata; } _PACKED ata;
struct { struct {
bool master; bool master;
uint8 logical_unit; uint8 logical_unit;
} atapi; } _PACKED atapi;
struct { struct {
uint8 logical_unit; uint8 logical_unit;
} scsi; } _PACKED scsi;
struct { struct {
uint8 tbd; uint8 tbd;
} usb; } _PACKED usb;
struct { struct {
uint64 guid; uint64 guid;
} firewire; } _PACKED firewire;
struct { struct {
uint64 wwd; uint64 wwd;
} fibre; } _PACKED fibre;
struct { struct {
off_t size; off_t size;
struct { struct {
off_t offset; off_t offset;
uint32 sum; uint32 sum;
} check_sums[NUM_DISK_CHECK_SUMS]; } _PACKED check_sums[NUM_DISK_CHECK_SUMS];
} unknown; } _PACKED unknown;
} device; } device;
} disk_identifier; } _PACKED disk_identifier;
#endif /* KERNEL_BOOT_DISK_IDENTIFIER_H */ #endif /* KERNEL_BOOT_DISK_IDENTIFIER_H */