Lines Matching refs:mm

58 ….mm = &initial_mm, .thread = &initial_thread, .addr_limit = 0xffffffffffffffff, .pid = 0, .priorit…
216 current_pcb->mm->code_addr_start = ehdr.e_entry; 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()
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()
319 regs->rsp = current_pcb->mm->stack_start; in process_load_elf_file()
320 regs->rbp = current_pcb->mm->stack_start; in process_load_elf_file()
325 …int val = mm_create_vma(current_pcb->mm, current_pcb->mm->stack_start - PAGE_2M_SIZE, PAGE_2M_SIZE, in process_load_elf_file()
334 memset((void *)(current_pcb->mm->stack_start - PAGE_2M_SIZE), 0, PAGE_2M_SIZE); in process_load_elf_file()
365 current_pcb->mm = new_mms; in do_execve()
387 current_pcb->mm->code_addr_end = 0; in do_execve()
388 current_pcb->mm->data_addr_start = 0; in do_execve()
389 current_pcb->mm->data_addr_end = 0; in do_execve()
390 current_pcb->mm->rodata_addr_start = 0; in do_execve()
391 current_pcb->mm->rodata_addr_end = 0; in do_execve()
392 current_pcb->mm->bss_start = 0; in do_execve()
393 current_pcb->mm->bss_end = 0; in do_execve()
394 current_pcb->mm->brk_start = brk_start_addr; in do_execve()
395 current_pcb->mm->brk_end = brk_start_addr; in do_execve()
396 current_pcb->mm->stack_start = stack_start_addr; in do_execve()
435 current_pcb->mm->stack_start = stack_start_addr; in do_execve()
739 if (pcb->mm == NULL) in process_exit_mm()
744 if (pcb->mm->pgd == NULL) in process_exit_mm()
751 pml4t_t *current_pgd = (pml4t_t *)phys_2_virt(pcb->mm->pgd); in process_exit_mm()
754 struct vm_area_struct *vma = pcb->mm->vmas; in process_exit_mm()
763 mm_unmap_vma(pcb->mm, cur_vma, &pa); in process_exit_mm()
782 if (unlikely(pcb->mm->vmas != NULL)) in process_exit_mm()
787 kfree(pcb->mm); in process_exit_mm()