memory #7

Merged
xamidev merged 7 commits from memory into main 2026-01-04 09:28:00 +01:00
Owner

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.

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.
xamidev added 7 commits 2026-01-04 09:27:51 +01:00
xamidev merged commit be1be41a64 into main 2026-01-04 09:28:00 +01:00
Author
Owner

(The VMM is not implemented yet but we will do that later)

(The VMM is not implemented yet but we will do that later)
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: xamidev/pepperOS#7