authorgravatar for n@nirf.deNick Erdmann <n@nirf.de> 2020-03-09 20:25:55+01:00
committergravatar for n@nirf.deNick Erdmann <n@nirf.de> 2020-03-12 23:22:08+01:00
log52eb4129de7406de11319940e5494fed1b6a46e5
tree47b55370913b8d50b9c92b5e11a1175c304fe84d
parente617e8a7981119d1b2d3593b14c1a06dde5f1c43

std/os/uefi: loaded image protocol improvements


2 files changed, 11 insertions(+), 1 deletions(-)

lib/std/os/uefi/protocols.zig+1
...@@ -1,4 +1,5 @@...@@ -1,4 +1,5 @@
1pub const LoadedImageProtocol = @import("protocols/loaded_image_protocol.zig").LoadedImageProtocol;1pub const LoadedImageProtocol = @import("protocols/loaded_image_protocol.zig").LoadedImageProtocol;
2pub const loaded_image_device_path_protocol_guid = @import("protocols/loaded_image_protocol.zig").loaded_image_device_path_protocol_guid;
23
3pub const DevicePathProtocol = @import("protocols/device_path_protocol.zig").DevicePathProtocol;4pub const DevicePathProtocol = @import("protocols/device_path_protocol.zig").DevicePathProtocol;
45
lib/std/os/uefi/protocols/loaded_image_protocol.zig+10-1
...@@ -13,7 +13,7 @@ pub const LoadedImageProtocol = extern struct {...@@ -13,7 +13,7 @@ pub const LoadedImageProtocol = extern struct {
13 file_path: *DevicePathProtocol,13 file_path: *DevicePathProtocol,
14 reserved: *c_void,14 reserved: *c_void,
15 load_options_size: u32,15 load_options_size: u32,
16 load_options: *c_void,16 load_options: ?*c_void,
17 image_base: [*]u8,17 image_base: [*]u8,
18 image_size: u64,18 image_size: u64,
19 image_code_type: MemoryType,19 image_code_type: MemoryType,
...@@ -34,3 +34,12 @@ pub const LoadedImageProtocol = extern struct {...@@ -34,3 +34,12 @@ pub const LoadedImageProtocol = extern struct {
34 .node = [_]u8{ 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b },34 .node = [_]u8{ 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b },
35 };35 };
36};36};
37
38pub const loaded_image_device_path_protocol_guid align(8) = Guid{
39 .time_low = 0xbc62157e,
40 .time_mid = 0x3e33,
41 .time_high_and_version = 0x4fec,
42 .clock_seq_high_and_reserved = 0x99,
43 .clock_seq_low = 0x20,
44 .node = [_]u8{ 0x2d, 0x3b, 0x36, 0xd7, 0x50, 0xdf },
45};