kernel: Add maxAddress constraint to vm_allocate_early_physical_page.

Needed by the x86 PAE code.

Change-Id: I982dfa96427addfc903205f49f53a46462534843
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8457
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Augustin Cavalier
2024-10-16 16:17:13 +00:00
committed by waddlesplash
parent 6ff28d8731
commit 5f87420792
3 changed files with 29 additions and 17 deletions
+2 -1
View File
@@ -59,8 +59,9 @@ status_t vm_init_post_modules(struct kernel_args *args);
void vm_free_kernel_args(struct kernel_args *args);
void vm_free_unused_boot_loader_range(addr_t start, addr_t end);
page_num_t vm_allocate_early_physical_page(kernel_args *args);
page_num_t vm_allocate_early_physical_page_etc(kernel_args *args, phys_addr_t maxAddress = 0);
addr_t vm_allocate_early(struct kernel_args *args, size_t virtualSize,
size_t physicalSize, uint32 attributes, addr_t alignment);
size_t physicalSize, uint32 attributes, addr_t alignment);
void slab_init(struct kernel_args *args);
void slab_init_post_area();