Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/process/
Dfork.c253 uint64_t map_size = PAGE_4K_ALIGN(vma_size); in process_copy_mm() local
254 uint64_t va = (uint64_t)kmalloc(map_size, 0); in process_copy_mm()
257 … int ret = mm_create_vma(new_mms, vma->vm_start, map_size, vma->vm_flags, vma->vm_ops, &new_vma); in process_copy_mm()
262 mm_map_vma(new_vma, virt_2_phys(va), 0, map_size); in process_copy_mm()
Dprocess.c290 int64_t map_size = 0; in process_load_elf_file() local
306 map_size = PAGE_2M_SIZE; in process_load_elf_file()
311 map_size = ALIGN(remain_mem_size, PAGE_4K_SIZE); in process_load_elf_file()
313 for (uint64_t off = 0; off < map_size; off += PAGE_4K_SIZE) in process_load_elf_file()
368 remain_mem_size -= map_size; in process_load_elf_file()
370 virt_base += map_size; in process_load_elf_file()