Kernel: Be more clever with physical memory

Initially allocate all physical memory except kernel memory and boot
modules. Before we just skipped all memory before kernel boot modules.
Also release memory used by boot modules after the kernel is up and
running. Once the boot modules are loaded, there is no need to keep them
in memory.
This commit is contained in:
2026-04-05 18:07:55 +03:00
parent 34b59f062b
commit e4c6539964
3 changed files with 113 additions and 21 deletions

View File

@@ -18,6 +18,8 @@ namespace Kernel
static void initialize();
static Heap& get();
void release_boot_modules();
paddr_t take_free_page();
void release_page(paddr_t);