memblock: add alignment parameter to alloc functions

This commit is contained in:
2023-02-06 20:38:32 +00:00
parent a72117abcd
commit 6afb3bd10d
4 changed files with 25 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ kern_status_t vm_bootstrap(const vm_zone_descriptor_t *zones, size_t nr_zones)
int numa_count = 1;
/* we're only worrying about UMA systems for now */
node_data = memblock_alloc(sizeof(vm_pg_data_t) * numa_count);
node_data = memblock_alloc(sizeof(vm_pg_data_t) * numa_count, 8);
vm_page_init_array();