• Home
  • Raw
  • Download

Lines Matching refs:mm

359 	current->mm->start_code = 0;  in load_elf_fdpic_binary()
360 current->mm->end_code = 0; in load_elf_fdpic_binary()
361 current->mm->start_stack = 0; in load_elf_fdpic_binary()
362 current->mm->start_data = 0; in load_elf_fdpic_binary()
363 current->mm->end_data = 0; in load_elf_fdpic_binary()
364 current->mm->context.exec_fdpic_loadmap = 0; in load_elf_fdpic_binary()
365 current->mm->context.interp_fdpic_loadmap = 0; in load_elf_fdpic_binary()
370 &current->mm->start_stack, in load_elf_fdpic_binary()
371 &current->mm->start_brk); in load_elf_fdpic_binary()
373 retval = setup_arg_pages(bprm, current->mm->start_stack, in load_elf_fdpic_binary()
380 retval = elf_fdpic_map_file(&exec_params, bprm->file, current->mm, in load_elf_fdpic_binary()
387 current->mm, "interpreter"); in load_elf_fdpic_binary()
399 if (!current->mm->start_brk) in load_elf_fdpic_binary()
400 current->mm->start_brk = current->mm->end_data; in load_elf_fdpic_binary()
402 current->mm->brk = current->mm->start_brk = in load_elf_fdpic_binary()
403 PAGE_ALIGN(current->mm->start_brk); in load_elf_fdpic_binary()
416 current->mm->start_brk = vm_mmap(NULL, 0, stack_size, stack_prot, in load_elf_fdpic_binary()
421 if (IS_ERR_VALUE(current->mm->start_brk)) { in load_elf_fdpic_binary()
422 retval = current->mm->start_brk; in load_elf_fdpic_binary()
423 current->mm->start_brk = 0; in load_elf_fdpic_binary()
427 current->mm->brk = current->mm->start_brk; in load_elf_fdpic_binary()
428 current->mm->context.end_brk = current->mm->start_brk; in load_elf_fdpic_binary()
429 current->mm->start_stack = current->mm->start_brk + stack_size; in load_elf_fdpic_binary()
433 if (create_elf_fdpic_tables(bprm, current->mm, in load_elf_fdpic_binary()
437 kdebug("- start_code %lx", current->mm->start_code); in load_elf_fdpic_binary()
438 kdebug("- end_code %lx", current->mm->end_code); in load_elf_fdpic_binary()
439 kdebug("- start_data %lx", current->mm->start_data); in load_elf_fdpic_binary()
440 kdebug("- end_data %lx", current->mm->end_data); in load_elf_fdpic_binary()
441 kdebug("- start_brk %lx", current->mm->start_brk); in load_elf_fdpic_binary()
442 kdebug("- brk %lx", current->mm->brk); in load_elf_fdpic_binary()
443 kdebug("- start_stack %lx", current->mm->start_stack); in load_elf_fdpic_binary()
459 start_thread(regs, entryaddr, current->mm->start_stack); in load_elf_fdpic_binary()
492 struct mm_struct *mm, in create_elf_fdpic_tables() argument
513 sp = mm->start_stack; in create_elf_fdpic_tables()
564 current->mm->context.exec_fdpic_loadmap = (unsigned long) sp; in create_elf_fdpic_tables()
577 current->mm->context.interp_fdpic_loadmap = (unsigned long) sp; in create_elf_fdpic_tables()
678 current->mm->arg_start = bprm->p; in create_elf_fdpic_tables()
680 current->mm->arg_start = current->mm->start_stack - in create_elf_fdpic_tables()
684 p = (char __user *) current->mm->arg_start; in create_elf_fdpic_tables()
693 current->mm->arg_end = (unsigned long) p; in create_elf_fdpic_tables()
696 current->mm->env_start = (unsigned long) p; in create_elf_fdpic_tables()
705 current->mm->env_end = (unsigned long) p; in create_elf_fdpic_tables()
707 mm->start_stack = (unsigned long) sp; in create_elf_fdpic_tables()
724 struct mm_struct *mm, in elf_fdpic_map_file() argument
765 ret = elf_fdpic_map_file_constdisp_on_uclinux(params, file, mm); in elf_fdpic_map_file()
771 ret = elf_fdpic_map_file_by_direct_mmap(params, file, mm); in elf_fdpic_map_file()
908 struct mm_struct *mm) in elf_fdpic_map_file_constdisp_on_uclinux() argument
970 if (mm) { in elf_fdpic_map_file_constdisp_on_uclinux()
972 if (!mm->start_code) { in elf_fdpic_map_file_constdisp_on_uclinux()
973 mm->start_code = seg->addr; in elf_fdpic_map_file_constdisp_on_uclinux()
974 mm->end_code = seg->addr + in elf_fdpic_map_file_constdisp_on_uclinux()
977 } else if (!mm->start_data) { in elf_fdpic_map_file_constdisp_on_uclinux()
978 mm->start_data = seg->addr; in elf_fdpic_map_file_constdisp_on_uclinux()
979 mm->end_data = seg->addr + phdr->p_memsz; in elf_fdpic_map_file_constdisp_on_uclinux()
996 struct mm_struct *mm) in elf_fdpic_map_file_by_direct_mmap() argument
1147 if (mm) { in elf_fdpic_map_file_by_direct_mmap()
1149 if (!mm->start_code) { in elf_fdpic_map_file_by_direct_mmap()
1150 mm->start_code = maddr; in elf_fdpic_map_file_by_direct_mmap()
1151 mm->end_code = maddr + phdr->p_memsz; in elf_fdpic_map_file_by_direct_mmap()
1153 } else if (!mm->start_data) { in elf_fdpic_map_file_by_direct_mmap()
1154 mm->start_data = maddr; in elf_fdpic_map_file_by_direct_mmap()
1155 mm->end_data = maddr + phdr->p_memsz; in elf_fdpic_map_file_by_direct_mmap()
1364 prstatus->pr_exec_fdpic_loadmap = p->mm->context.exec_fdpic_loadmap; in fill_prstatus()
1365 prstatus->pr_interp_fdpic_loadmap = p->mm->context.interp_fdpic_loadmap; in fill_prstatus()
1369 struct mm_struct *mm) in fill_psinfo() argument
1377 len = mm->arg_end - mm->arg_start; in fill_psinfo()
1381 (const char __user *) mm->arg_start, len)) in fill_psinfo()
1487 for (vma = current->mm->mmap; vma; vma = vma->vm_next) { in elf_fdpic_dump_segments()
1523 for (vma = current->mm->mmap; vma; vma = vma->vm_next) in elf_core_vma_data_size()
1599 for (ct = current->mm->core_state->dumper.next; in elf_fdpic_core_dump()
1622 segs = current->mm->map_count; in elf_fdpic_core_dump()
1643 fill_psinfo(psinfo, current->group_leader, current->mm); in elf_fdpic_core_dump()
1648 auxv = (elf_addr_t *) current->mm->saved_auxv; in elf_fdpic_core_dump()
1714 for (vma = current->mm->mmap; vma; vma = vma->vm_next) { in elf_fdpic_core_dump()