summaryrefslogtreecommitdiffstats
path: root/boot/limine/memorymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/limine/memorymap.c')
-rw-r--r--boot/limine/memorymap.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/boot/limine/memorymap.c b/boot/limine/memorymap.c
index c558e75..7ce1da8 100644
--- a/boot/limine/memorymap.c
+++ b/boot/limine/memorymap.c
@@ -66,10 +66,11 @@ mem_setup_regions(void)
region_new(region_obj, entry->base, entry->length / 0x1000);
obj_release(region_obj);
}
- }
- if(entry->type == LIMINE_MEMMAP_RESERVED |
- entry->type == LIMINE_MEMMAP_ACPI_NVS |
- entry->type == LIMINE_MEMMAP_ACPI_TABLES)
+ }else
+ if(entry->type == LIMINE_MEMMAP_RESERVED ||
+ entry->type == LIMINE_MEMMAP_ACPI_NVS ||
+ entry->type == LIMINE_MEMMAP_ACPI_TABLES ||
+ entry->type == LIMINE_MEMMAP_FRAMEBUFFER)
{
intmax_t hw_pages = entry->length >> 12;
uintptr_t base = entry->base;
@@ -90,6 +91,8 @@ mem_setup_regions(void)
hw_pages -= 4096;
base += (4096ULL << 12);
}
+ }else{
+ klogf("Kmem %p : %p %s\n", entry->base, entry->length, limine_mmap_entry_type_str[entry->type]);
}
}
}