Added missing packed attributes on disk_identifier.
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user