std/os/uefi: Align first field of EdidOverrideProtocolAttributes to 4

This makes the struct align(4), which allows it to be passed as flags
more easily.
This commit is contained in:
fifty-six
2022-01-16 01:50:02 -05:00
parent 4771ac298b
commit d276a1189d

View File

@@ -8,7 +8,6 @@ pub const EdidOverrideProtocol = extern struct {
_get_edid: fn (*const EdidOverrideProtocol, Handle, *u32, *usize, *?[*]u8) callconv(.C) Status,
/// Returns policy information and potentially a replacement EDID for the specified video output device.
/// attributes must be align(4)
pub fn getEdid(self: *const EdidOverrideProtocol, handle: Handle, attributes: *EdidOverrideProtocolAttributes, edid_size: *usize, edid: *?[*]u8) Status {
return self._get_edid(self, handle, attributes, edid_size, edid);
}
@@ -24,7 +23,7 @@ pub const EdidOverrideProtocol = extern struct {
};
pub const EdidOverrideProtocolAttributes = packed struct {
dont_override: bool,
dont_override: bool align(4),
enable_hot_plug: bool,
_pad: u30 = 0,
};