Created separate memblock functions for virtual and physical memory allocation

This commit is contained in:
2023-01-08 12:21:13 +00:00
parent 0d77d97561
commit bbb09b2549
3 changed files with 22 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ int main(int argc, const char **argv)
memblock_reserve(0x30000, 0x40000);
memblock_reserve(0x100000, 0x10000);
phys_addr_t alloc = memblock_alloc(512);
phys_addr_t alloc = memblock_alloc_phys(512);
printf("allocated 512 bytes at 0x%" PRIxPTR "\n", alloc);
printf("memory regions:\n");