memory #7
Reference in New Issue
Block a user
Delete Branch "memory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Got a memory map, HHDM offset from the bootloader. Then implemented a small PMM that can alloc/free a single frame at a time with a freelist. (thanks to @wux.efi on the OSDev discord)
We also got back control of paging, removed Limine's page tables and set up ours; the kernel & framebuffer are remapped within our structures.
(I believe we do not have access to ACPI anymore though but we can still modify the code to remap those sections aswell once we need them)
Also implemented a tiny (16MB, hardcoded) kernel heap with kmalloc/kfree.
(The VMM is not implemented yet but we will do that later)