:: commit c7081a21d0f11c94709badfe03f122730d41416b

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

parents: bcff3179b0

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