Lines Matching refs:virt_base
246 uint64_t virt_base = 0; in process_load_elf_file() local
250 virt_base = phdr->p_vaddr & PAGE_2M_MASK; in process_load_elf_file()
252 virt_base = phdr->p_vaddr & PAGE_4K_MASK; in process_load_elf_file()
254 beginning_offset = phdr->p_vaddr - virt_base; in process_load_elf_file()
266 … mm_create_vma(current_pcb->mm, virt_base, PAGE_2M_SIZE, VM_USER | VM_ACCESS_FLAGS, NULL, &vma); in process_load_elf_file()
272 mm_map(current_pcb->mm, virt_base, PAGE_2M_SIZE, pa); in process_load_elf_file()
275 memset((void *)virt_base, 0, PAGE_2M_SIZE); in process_load_elf_file()
288 … int val = mm_create_vma(current_pcb->mm, virt_base + off, PAGE_4K_SIZE, VM_USER | VM_ACCESS_FLAGS, in process_load_elf_file()
294 mm_map(current_pcb->mm, virt_base + off, PAGE_4K_SIZE, paddr); in process_load_elf_file()
297 memset((void *)(virt_base + off), 0, PAGE_4K_SIZE); in process_load_elf_file()
306 … val = filp->file_ops->read(filp, (char *)(virt_base + beginning_offset), to_trans, &pos); in process_load_elf_file()
314 virt_base += map_size; in process_load_elf_file()