Home
last modified time | relevance | path

Searched refs:task_size (Results 1 – 16 of 16) sorted by relevance

/arch/x86/mm/
Dmmap.c39 static unsigned long stack_maxrandom_size(unsigned long task_size) in stack_maxrandom_size() argument
43 max = (-1UL) & __STACK_RND_MASK(task_size == task_size_32bit()); in stack_maxrandom_size()
80 static unsigned long mmap_base(unsigned long rnd, unsigned long task_size, in mmap_base() argument
84 unsigned long pad = stack_maxrandom_size(task_size) + stack_guard_gap; in mmap_base()
96 gap_max = (task_size / 6) * 5; in mmap_base()
103 return PAGE_ALIGN(task_size - gap - rnd); in mmap_base()
107 unsigned long task_size) in mmap_legacy_base() argument
109 return __TASK_UNMAPPED_BASE(task_size) + rnd; in mmap_legacy_base()
117 unsigned long random_factor, unsigned long task_size, in arch_pick_mmap_base() argument
120 *legacy_base = mmap_legacy_base(random_factor, task_size); in arch_pick_mmap_base()
[all …]
/arch/sparc/kernel/
Dsys_sparc_64.c94 unsigned long task_size = TASK_SIZE; in arch_get_unmapped_area() local
109 task_size = STACK_TOP32; in arch_get_unmapped_area()
110 if (unlikely(len > task_size || len >= VA_EXCLUDE_START)) in arch_get_unmapped_area()
124 if (task_size - len >= addr && in arch_get_unmapped_area()
132 info.high_limit = min(task_size, VA_EXCLUDE_START); in arch_get_unmapped_area()
137 if ((addr & ~PAGE_MASK) && task_size > VA_EXCLUDE_END) { in arch_get_unmapped_area()
140 info.high_limit = task_size; in arch_get_unmapped_area()
154 unsigned long task_size = STACK_TOP32; in arch_get_unmapped_area_topdown() local
172 if (unlikely(len > task_size)) in arch_get_unmapped_area_topdown()
187 if (task_size - len >= addr && in arch_get_unmapped_area_topdown()
[all …]
/arch/mips/include/asm/
Dhugetlb.h26 unsigned long task_size = STACK_TOP; in prepare_hugepage_range() local
33 if (len > task_size) in prepare_hugepage_range()
35 if (task_size - len < addr) in prepare_hugepage_range()
/arch/x86/kernel/fpu/
Dinit.c160 int task_size = sizeof(struct task_struct); in fpu__init_task_struct_size() local
166 task_size -= sizeof(((struct task_struct *)0)->thread.fpu.state); in fpu__init_task_struct_size()
172 task_size += fpu_kernel_xstate_size; in fpu__init_task_struct_size()
185 arch_task_struct_size = task_size; in fpu__init_task_struct_size()
/arch/x86/um/vdso/
Dvma.c16 extern unsigned long task_size;
27 um_vdso_addr = task_size - PAGE_SIZE; in init_vdso()
/arch/sparc/mm/
Dhugetlbpage.c34 unsigned long task_size = TASK_SIZE; in hugetlb_get_unmapped_area_bottomup() local
38 task_size = STACK_TOP32; in hugetlb_get_unmapped_area_bottomup()
43 info.high_limit = min(task_size, VA_EXCLUDE_START); in hugetlb_get_unmapped_area_bottomup()
48 if ((addr & ~PAGE_MASK) && task_size > VA_EXCLUDE_END) { in hugetlb_get_unmapped_area_bottomup()
51 info.high_limit = task_size; in hugetlb_get_unmapped_area_bottomup()
104 unsigned long task_size = TASK_SIZE; in hugetlb_get_unmapped_area() local
107 task_size = STACK_TOP32; in hugetlb_get_unmapped_area()
111 if (len > task_size) in hugetlb_get_unmapped_area()
123 if (task_size - len >= addr && in hugetlb_get_unmapped_area()
/arch/um/include/asm/
Dprocessor-generic.h69 extern unsigned long task_size;
71 #define TASK_SIZE (task_size)
/arch/parisc/include/asm/
Dprocessor.h25 #define TASK_SIZE_OF(tsk) ((tsk)->thread.task_size)
116 unsigned long task_size; member
153 .task_size = DEFAULT_TASK_SIZE, \
Delf.h240 current->thread.task_size = DEFAULT_TASK_SIZE; \
250 current->thread.task_size = DEFAULT_TASK_SIZE32; \
/arch/x86/um/os-Linux/
DMakefile6 obj-y = registers.o task_size.o mcontext.o
/arch/um/kernel/
Dum_arch.c239 unsigned long task_size; variable
240 EXPORT_SYMBOL(task_size);
274 task_size = host_task_size & PGDIR_MASK; in linux_main()
/arch/powerpc/mm/book3s64/
Dsubpage_prot.c204 addr >= mm->task_size || len >= mm->task_size || in SYSCALL_DEFINE3()
205 addr + len > mm->task_size) in SYSCALL_DEFINE3()
/arch/parisc/kernel/
Dsys_parisc.c87 unsigned long task_size = TASK_SIZE; in arch_get_unmapped_area() local
91 if (len > task_size) in arch_get_unmapped_area()
114 if (task_size - len >= addr && in arch_get_unmapped_area()
/arch/s390/kernel/
Dsetup.c1024 int task_size = sizeof(struct task_struct); in setup_task_size() local
1027 task_size -= sizeof(__vector128) * __NUM_VXRS; in setup_task_size()
1028 task_size += sizeof(freg_t) * __NUM_FPRS; in setup_task_size()
1030 arch_task_struct_size = task_size; in setup_task_size()
/arch/x86/include/asm/
Dprocessor.h904 #define __TASK_UNMAPPED_BASE(task_size) (PAGE_ALIGN(task_size / 3)) argument
/arch/powerpc/mm/
Dslice.c471 BUG_ON(mm->task_size == 0); in slice_get_unmapped_area()