summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2025-02-20 14:44:10 -0500
committerPeter Jones <pjones@redhat.com>2025-02-24 15:58:16 -0500
commit9269e9b0aa15ae9832f7eba6c5eeef0c5e1f4edb (patch)
treeb279f2af0682fc90877858f86404ddb2533a1855 /include
parentc41b1f066b9f279b70d933095f277eddbd7c6433 (diff)
downloadefi-boot-shim-9269e9b0aa15ae9832f7eba6c5eeef0c5e1f4edb.tar.gz
efi-boot-shim-9269e9b0aa15ae9832f7eba6c5eeef0c5e1f4edb.zip
Add DXE Services information to HSI
This adds three more entries to our HSI data: has-dxe-services-table: technically only tells us if UEFI's LocateProtocol will give us a DXE services table, but practically also tells us if the machine is implementing DXE in any way. has-get-memory-space-descriptor: tells us if DXE->GetMemorySpaceDescriptor is populated has-set-memory-space-descriptor: tells us if DXE->SetMemorySpaceDescriptor is populated Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/mok.h6
-rw-r--r--include/test-data-efivars-1.h6
2 files changed, 11 insertions, 1 deletions
diff --git a/include/mok.h b/include/mok.h
index 1b44217c..cea4c997 100644
--- a/include/mok.h
+++ b/include/mok.h
@@ -141,6 +141,12 @@ extern UINTN hsi_status;
#define SHIM_HSI_STATUS_ROW 0x00000004ULL
/* platform provides the EFI Memory Attribute Protocol */
#define SHIM_HSI_STATUS_HASMAP 0x00000008ULL
+/* platform provides DXE Services Table */
+#define SHIM_HSI_STATUS_HASDST 0x00000010ULL
+/* platform has DST->GetMemorySpaceDescriptor */
+#define SHIM_HSI_STATUS_HASDSTGMSD 0x00000020ULL
+/* platform has DST->SetMemorySpaceAttributes */
+#define SHIM_HSI_STATUS_HASDSTSMSA 0x00000040ULL
#endif /* !SHIM_MOK_H_ */
// vim:fenc=utf-8:tw=75:noet
diff --git a/include/test-data-efivars-1.h b/include/test-data-efivars-1.h
index d97a4d6d..7a34ea70 100644
--- a/include/test-data-efivars-1.h
+++ b/include/test-data-efivars-1.h
@@ -110,7 +110,11 @@ static const unsigned char test_data_efivars_1_HSIStatus[] =
"heap-is-executable: 0\n"
"stack-is-executable: 0\n"
"ro-sections-are-writable: 0\n"
- "has-memory-attribute-protocol: 0\n";
+ "has-memory-attribute-protocol: 0\n"
+ "has-dxe-services-table: 0\n"
+ "has-get-memory-space-descriptor: 0\n"
+ "has-set-memory-space-attributes: 0\n"
+ ;
#endif /* !TEST_DATA_EFIVARS_1_H_ */
// vim:fenc=utf-8:tw=75:noet