Lines Matching refs:mm
57 ….mm = &initial_mm, .thread = &initial_thread, .addr_limit = 0xffffffffffffffff, .pid = 0, .priorit…
231 current_pcb->mm->code_addr_start = ehdr.e_entry; in process_load_elf_file()
296 … mm_create_vma(current_pcb->mm, virt_base, PAGE_2M_SIZE, VM_USER | VM_ACCESS_FLAGS, NULL, &vma); in process_load_elf_file()
302 mm_map(current_pcb->mm, virt_base, PAGE_2M_SIZE, pa); in process_load_elf_file()
318 … int val = mm_create_vma(current_pcb->mm, virt_base + off, PAGE_4K_SIZE, VM_USER | VM_ACCESS_FLAGS, in process_load_elf_file()
324 mm_map(current_pcb->mm, virt_base + off, PAGE_4K_SIZE, paddr); in process_load_elf_file()
375 regs->rsp = current_pcb->mm->stack_start; in process_load_elf_file()
376 regs->rbp = current_pcb->mm->stack_start; in process_load_elf_file()
381 …int val = mm_create_vma(current_pcb->mm, current_pcb->mm->stack_start - PAGE_2M_SIZE, PAGE_2M_SIZE, in process_load_elf_file()
390 memset((void *)(current_pcb->mm->stack_start - PAGE_2M_SIZE), 0, PAGE_2M_SIZE); in process_load_elf_file()
425 current_pcb->mm = new_mms; in do_execve()
447 current_pcb->mm->code_addr_end = 0; in do_execve()
448 current_pcb->mm->data_addr_start = 0; in do_execve()
449 current_pcb->mm->data_addr_end = 0; in do_execve()
450 current_pcb->mm->rodata_addr_start = 0; in do_execve()
451 current_pcb->mm->rodata_addr_end = 0; in do_execve()
452 current_pcb->mm->bss_start = 0; in do_execve()
453 current_pcb->mm->bss_end = 0; in do_execve()
454 current_pcb->mm->brk_start = brk_start_addr; in do_execve()
455 current_pcb->mm->brk_end = brk_start_addr; in do_execve()
456 current_pcb->mm->stack_start = stack_start_addr; in do_execve()
514 current_pcb->mm->stack_start = stack_start_addr; in do_execve()
822 if (pcb->mm == NULL) in process_exit_mm()
827 if (pcb->mm->pgd == NULL) in process_exit_mm()
834 pml4t_t *current_pgd = (pml4t_t *)phys_2_virt(pcb->mm->pgd); in process_exit_mm()
837 struct vm_area_struct *vma = pcb->mm->vmas; in process_exit_mm()
845 mm_unmap_vma(pcb->mm, cur_vma, &pa); in process_exit_mm()
864 if (unlikely(pcb->mm->vmas != NULL)) in process_exit_mm()
869 kfree(pcb->mm); in process_exit_mm()