sandbox: vm: temporary implementation of vm_page_get_vaddr()

This commit is contained in:
2023-02-02 16:57:03 +00:00
parent 7331bdefda
commit e5a7546996
2 changed files with 15 additions and 6 deletions

View File

@@ -41,6 +41,8 @@ static struct mem_map_region mem_map[] = {
{ .base = 0x00800000, .limit = MB_TO_BYTES(MEMORY_SIZE_MB) - 1, .status = REGION_FREE },
};
extern void tmp_set_vaddr_base(void *);
/* virtual address of where system memory is mapped */
static void *system_memory = NULL;
@@ -108,6 +110,7 @@ int memory_test(void)
}
}
tmp_set_vaddr_base(system_memory);
memblock_add(pmem_base, pmem_limit + 1);
for (size_t i = 0; i < nr_mem_map_entries; i++) {