void fixup_page_allocator(void)
Rewrites allocator bitmap pointers after the switch to high virtual addresses.
Definition page_allocator.c:429
void page_dump_status(void)
Scans the bitmap and prints the status of all memory regions.
Definition page_allocator.c:485
void page_free(phy_addr start, size_t num_pages)
Frees a previously allocated block of physical pages.
Definition page_allocator.c:474
bool reserve_page(phy_addr start, size_t num_pages)
Reserves a specific number of contiguous pages.
Definition page_allocator.c:451
bool page_allocator_add_region(phy_addr mem_start, size_t mem_size, bool check_kernel_overlap)
Registers a new physical memory region with the allocator.
Definition page_allocator.c:388
bool page_allocator_remove_region(phy_addr mem_start)
Removes a previously registered memory region.
Definition page_allocator.c:412
phy_addr page_alloc(size_t num_pages)
Allocates a contiguous block of physical pages.
Definition page_allocator.c:462
Page table definitions and helpers for virtual memory mapping.