Home
last modified time | relevance | path

Searched refs:map_size (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.2/kernel/src/process/
Dfork.c278 uint64_t map_size = PAGE_4K_ALIGN(vma_size); in process_copy_mm() local
279 uint64_t va = (uint64_t)kmalloc(map_size, 0); in process_copy_mm()
282 … int ret = mm_create_vma(new_mms, vma->vm_start, map_size, vma->vm_flags, vma->vm_ops, &new_vma); in process_copy_mm()
287 mm_map_vma(new_vma, virt_2_phys(va), 0, map_size); in process_copy_mm()
Dprocess.c260 int64_t map_size = 0; in process_load_elf_file() local
276 map_size = PAGE_2M_SIZE; in process_load_elf_file()
281 map_size = ALIGN(remain_mem_size, PAGE_4K_SIZE); in process_load_elf_file()
283 for (uint64_t off = 0; off < map_size; off += PAGE_4K_SIZE) in process_load_elf_file()
312 remain_mem_size -= map_size; in process_load_elf_file()
314 virt_base += map_size; in process_load_elf_file()