summaryrefslogtreecommitdiff
path: root/src/boot/efi/pe.h
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-06-05 17:30:45 +0200
committerJan Janssen <medhefgo@web.de>2023-01-20 20:55:11 +0100
commit19f08504c500d870c61a300c7e2cd740f777466e (patch)
tree4cc888d06b888e600228e8fc79758ac253e1a98d /src/boot/efi/pe.h
parent888b678f9f5f7b17a800be7b2560856ed9745196 (diff)
downloadsystemd-19f08504c500d870c61a300c7e2cd740f777466e.tar.gz
boot: Rework GUID handling
This stops using global GUID variables provided by gnu-efi. The globals presumably exist to make EFI calls easier. But these GUIDs are just 128bits, so it's cheap to just put them on the stack when needed. C99 compound literals makes this even easier. This also adds a convenience macro to create GUID pointers and uses it everywhere. Not forcing a GUID definition to be a compound literal makes them easier to use when assigning them to variables: EFI_GUID before = *SOME_CONST_GUID; EFI_GUID after = SOME_GUID; And MAKE_GUID_PTR() makes it more explicit what is happening. It was easy to confuse the old code as a cast: before(&(EFI_GUID) SOME_GUID); after(MAKE_GUID_PTR(SOME));
Diffstat (limited to 'src/boot/efi/pe.h')
0 files changed, 0 insertions, 0 deletions