:: commit 26e77b877b93b3bc97c72d5b49af2426cad62fd7

mintsuki <mintsuki@protonmail.com> — 2023-11-02 08:23

parents: 30397df228

pmm: Define MEMMAP_MAX to 256 and 1024 for BIOS and UEFI respectively

diff --git a/common/mm/pmm.h b/common/mm/pmm.h
index c8e88c28..00aab406 100644
--- a/common/mm/pmm.h
+++ b/common/mm/pmm.h
@@ -22,7 +22,11 @@ struct memmap_entry {
 #define MEMMAP_FRAMEBUFFER            0x1002
 #define MEMMAP_EFI_RECLAIMABLE        0x2000
 
-#define MEMMAP_MAX 512
+#if defined (BIOS)
+#  define MEMMAP_MAX 256
+#elif defined (UEFI)
+#  define MEMMAP_MAX 1024
+#endif
 
 struct meminfo {
     size_t uppermem;
tab: 248 wrap: offon