Searched refs:virt_base (Results 1 – 1 of 1) sorted by relevance
/DragonOS-0.1.2/kernel/src/process/ |
D | process.c | 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() [all …]
|