diff options
| author | Peter Jones <pjones@redhat.com> | 2024-06-27 15:19:38 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2025-02-24 15:58:16 -0500 |
| commit | c41b1f066b9f279b70d933095f277eddbd7c6433 (patch) | |
| tree | a00429147551e01583d9128ff76ed7f536a8d824 /include | |
| parent | eeda3fab069a194fe812e4e4065f4138d4017ba4 (diff) | |
| download | efi-boot-shim-c41b1f066b9f279b70d933095f277eddbd7c6433.tar.gz efi-boot-shim-c41b1f066b9f279b70d933095f277eddbd7c6433.zip | |
Add support for DXE memory attribute updates.
This adds DXE implementations of get_mem_attrs() and update_mem_attrs()
for machines that implement DXE but don't yet have the
EFI_MEMORY_ATTRIBUTE_PROTOCOL.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/guid.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/guid.h b/include/guid.h index e32dfc07..26628d1e 100644 --- a/include/guid.h +++ b/include/guid.h @@ -3,6 +3,16 @@ #ifndef SHIM_GUID_H #define SHIM_GUID_H +#define LGUID_FMT L"%08x-%04hx-%04hx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx" +#define GUID_FMT "%08x-%04hx-%04hx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx" + +#define GUID_ARGS(guid) \ + ((EFI_GUID)guid).Data1, ((EFI_GUID)guid).Data2, ((EFI_GUID)guid).Data3, \ + ((EFI_GUID)guid).Data4[1], ((EFI_GUID)guid).Data4[0], \ + ((EFI_GUID)guid).Data4[2], ((EFI_GUID)guid).Data4[3], \ + ((EFI_GUID)guid).Data4[4], ((EFI_GUID)guid).Data4[5], \ + ((EFI_GUID)guid).Data4[6], ((EFI_GUID)guid).Data4[7] + extern EFI_GUID BDS_GUID; extern EFI_GUID GV_GUID; extern EFI_GUID SIG_DB; |
