std/os/uefi: add global_variable guid

This commit is contained in:
Nick Erdmann 2019-09-02 20:34:00 +02:00
parent 70e62b8612
commit 03abc6edf4
No known key found for this signature in database
GPG Key ID: C174038EAF6578B2
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,6 @@
pub const BootServices = @import("tables/boot_services.zig").BootServices;
pub const ConfigurationTable = @import("tables/configuration_table.zig").ConfigurationTable;
pub const global_variable align(8) = @import("tables/runtime_services.zig").global_variable;
pub const ResetType = @import("tables/runtime_services.zig").ResetType;
pub const RuntimeServices = @import("tables/runtime_services.zig").RuntimeServices;
pub const SystemTable = @import("tables/system_table.zig").SystemTable;

View File

@ -39,3 +39,13 @@ pub const ResetType = extern enum(u32) {
ResetShutdown,
ResetPlatformSpecific,
};
/// UEFI Specification, Version 2.8, 3.3
pub const global_variable align(8) = Guid{
.time_low = 0x8be4df61,
.time_mid = 0x93ca,
.time_high_and_version = 0x11d2,
.clock_seq_high_and_reserved = 0xaa,
.clock_seq_low = 0x0d,
.node = [_]u8{ 0x00, 0xe0, 0x98, 0x03, 0x2b, 0x8c },
};