diff options
| author | Ian M. <ian@aptel.org> | 2026-09-11 05:40:51 +0000 |
|---|---|---|
| committer | Ian M. <ian@aptel.org> | 2026-09-11 05:40:51 +0000 |
| commit | 9bf419b4e0516ac23c3e49af0a10cb79ac1fd063 (patch) | |
| tree | 2cf48d860bae74a613864134d391e041033c3c81 /head | |
| parent | d1ae146b1fcecdd6ae688cedf523a5be0d7980c5 (diff) | |
core: Get platform memory map and exit boot services
Signed-off-by: Ian M. <ian@aptel.org>
Diffstat (limited to 'head')
| -rw-r--r-- | head/sboot/memmap.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/head/sboot/memmap.h b/head/sboot/memmap.h new file mode 100644 index 0000000..daad502 --- /dev/null +++ b/head/sboot/memmap.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2026, Apollo Telephone Laboratories. + * Provided under the BSD-3 clause. + */ + +#ifndef _SBOOT_MEMMAP_H_ +#define _SBOOT_MEMMAP_H_ 1 + +#include <efi.h> +#include <efilib.h> + +/* + * EFI memory map + */ +typedef struct { + EFI_MEMORY_DESCRIPTOR *Map; + UINTN MapSize; + UINTN MapKey; + UINTN DescriptorSize; + UINT32 DescriptorVersion; +} PLATFORM_MEMMAP; + +/* + * Obtain the platform memory map + * + * @Map: Result is written here + */ +EFI_STATUS SBootGetMemmap(OUT PLATFORM_MEMMAP *Map); + +#endif /* !_SBOOT_MEMMAP_H_ */ |
