From 9bf419b4e0516ac23c3e49af0a10cb79ac1fd063 Mon Sep 17 00:00:00 2001 From: "Ian M." Date: Fri, 11 Sep 2026 05:40:51 +0000 Subject: core: Get platform memory map and exit boot services Signed-off-by: Ian M. --- head/sboot/memmap.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 head/sboot/memmap.h (limited to 'head') 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 +#include + +/* + * 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_ */ -- cgit v1.2.3