:: commit 43ad771000b396d0c6d1f05029cc791d851245f4

mintsuki <mintsuki@protonmail.com> — 2023-12-06 23:13

parents: 1058661415

limine: Gate EFI memory map feature out of BIOS port

diff --git a/common/protos/limine.c b/common/protos/limine.c
index 37068804..06425c6b 100644
--- a/common/protos/limine.c
+++ b/common/protos/limine.c
@@ -974,6 +974,7 @@ FEAT_END
 #endif
 
     // EFI memory map
+#if defined (UEFI)
 FEAT_START
     struct limine_efi_memmap_request *efi_memmap_request = get_request(LIMINE_EFI_MEMMAP_REQUEST);
     if (efi_memmap_request == NULL) {
@@ -990,6 +991,7 @@ FEAT_START
 
     efi_memmap_request->response = reported_addr(efi_memmap_response);
 FEAT_END
+#endif
 
     // SMP
 FEAT_START
tab: 248 wrap: offon