Home
last modified time | relevance | path

Searched refs:THREAD_SIZE (Results 1 – 200 of 271) sorted by relevance

12

/linux-4.4.14/arch/sparc/kernel/
Dkstack.h19 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
25 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
29 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
42 addr <= (base + THREAD_SIZE - sizeof(*regs))) in kstack_is_trap_frame()
48 addr <= (base + THREAD_SIZE - sizeof(*regs))) in kstack_is_trap_frame()
52 addr <= (base + THREAD_SIZE - sizeof(*regs))) in kstack_is_trap_frame()
70 orig_sp > (sp + THREAD_SIZE)) { in set_hardirq_stack()
71 sp += THREAD_SIZE - 192 - STACK_BIAS; in set_hardirq_stack()
Dtrampoline_32.S64 sethi %hi(THREAD_SIZE - STACKFRAME_SZ), %sp
65 or %sp, %lo(THREAD_SIZE - STACKFRAME_SZ), %sp
125 sethi %hi(THREAD_SIZE - STACKFRAME_SZ), %sp
126 or %sp, %lo(THREAD_SIZE - STACKFRAME_SZ), %sp
181 sethi %hi(THREAD_SIZE - STACKFRAME_SZ), %sp
182 or %sp, %lo(THREAD_SIZE - STACKFRAME_SZ), %sp
Dvmlinux.lds.S67 RW_DATA_SECTION(SMP_CACHE_BYTES, 0, THREAD_SIZE)
Detrap_32.S130 #define STACK_OFFSET (THREAD_SIZE - TRACEREG_SZ - STACKFRAME_SZ)
153 sethi %hi(~(THREAD_SIZE - 1)), %curptr
Dprocess_32.c233 (task_stack_page(current) + (THREAD_SIZE - TRACEREG_SZ));
331 new_stack = task_stack_page(p) + THREAD_SIZE;
Dwuf.S138 #define STACK_OFFSET (THREAD_SIZE - TRACEREG_SZ - STACKFRAME_SZ)
/linux-4.4.14/arch/powerpc/kernel/
Dsetup_64.c616 __va(memblock_alloc_base(THREAD_SIZE, in irqstack_early_init()
617 THREAD_SIZE, limit)); in irqstack_early_init()
619 __va(memblock_alloc_base(THREAD_SIZE, in irqstack_early_init()
620 THREAD_SIZE, limit)); in irqstack_early_init()
631 sp = memblock_alloc(THREAD_SIZE, THREAD_SIZE); in exc_lvl_early_init()
633 paca[i].crit_kstack = __va(sp + THREAD_SIZE); in exc_lvl_early_init()
635 sp = memblock_alloc(THREAD_SIZE, THREAD_SIZE); in exc_lvl_early_init()
637 paca[i].dbg_kstack = __va(sp + THREAD_SIZE); in exc_lvl_early_init()
639 sp = memblock_alloc(THREAD_SIZE, THREAD_SIZE); in exc_lvl_early_init()
641 paca[i].mc_kstack = __va(sp + THREAD_SIZE); in exc_lvl_early_init()
[all …]
Dsetup_32.c234 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE)); in irqstack_early_init()
236 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE)); in irqstack_early_init()
255 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE)); in exc_lvl_early_init()
258 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE)); in exc_lvl_early_init()
260 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE)); in exc_lvl_early_init()
Dirq.c468 sp = current_stack_pointer() & (THREAD_SIZE-1); in check_stack_overflow()
578 memset((void *)critirq_ctx[cpu_nr], 0, THREAD_SIZE); in exc_lvl_ctx_init()
584 memset((void *)dbgirq_ctx[cpu_nr], 0, THREAD_SIZE); in exc_lvl_ctx_init()
589 memset((void *)mcheckirq_ctx[cpu_nr], 0, THREAD_SIZE); in exc_lvl_ctx_init()
607 memset((void *)softirq_ctx[i], 0, THREAD_SIZE); in irq_ctx_init()
611 memset((void *)hardirq_ctx[i], 0, THREAD_SIZE); in irq_ctx_init()
Dmisc_64.S36 stdu r1,THREAD_SIZE-STACK_FRAME_OVERHEAD(r3)
47 stdu r1,THREAD_SIZE-STACK_FRAME_OVERHEAD(r4)
605 stdu r1,THREAD_SIZE-STACK_FRAME_OVERHEAD(r3)
Dprocess.c1141 unsigned long sp = (unsigned long)task_stack_page(p) + THREAD_SIZE; in copy_thread()
1238 struct pt_regs *regs = task_stack_page(current) + THREAD_SIZE; in start_thread()
1488 && sp <= stack_page + THREAD_SIZE - nbytes) in valid_irq_stack()
1493 && sp <= stack_page + THREAD_SIZE - nbytes) in valid_irq_stack()
1505 && sp <= stack_page + THREAD_SIZE - nbytes) in validate_sp()
Dvmlinux.lds.S236 INIT_TASK_DATA_SECTION(THREAD_SIZE)
Dhead_booke.h47 ALLOC_STACK_FRAME(r11, THREAD_SIZE); \
96 #define EXC_LVL_FRAME_OVERHEAD (THREAD_SIZE - INT_FRAME_SIZE - EXC_LVL_SIZE)
Dhead_40x.S117 addi r1,r1,THREAD_SIZE; \
160 1: addi r11,r11,THREAD_SIZE-INT_FRAME_SIZE; /* Alloc an excpt frm */\
842 stwu r0,THREAD_SIZE-STACK_FRAME_OVERHEAD(r1)
Dhead_64.S675 addi r14,r14,THREAD_SIZE-STACK_FRAME_OVERHEAD
827 addi r1,r3,THREAD_SIZE
/linux-4.4.14/arch/mn10300/include/asm/
Dthread_info.h20 #define THREAD_SIZE (4096) macro
23 #define THREAD_SIZE (8192) macro
27 #define STACK_WARN (THREAD_SIZE / 8)
58 ((unsigned long)ti + THREAD_SIZE - sizeof(struct pt_regs)))
86 ((unsigned long) init_stack + THREAD_SIZE - sizeof(struct pt_regs)))
98 : "i" (~(THREAD_SIZE - 1)) in current_thread_info()
129 and -THREAD_SIZE,\reg
Dprocessor.h150 (unsigned long)(info) + THREAD_SIZE; \
/linux-4.4.14/arch/m68k/include/asm/
Dthread_info.h15 #define THREAD_SIZE 4096 macro
17 #define THREAD_SIZE 8192 macro
20 #define THREAD_SIZE PAGE_SIZE macro
22 #define THREAD_SIZE_ORDER ((THREAD_SIZE / PAGE_SIZE) - 1)
54 : "di" (~(THREAD_SIZE-1)) in current_thread_info()
Dptrace.h17 (struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1
Dentry.h230 andl #-THREAD_SIZE,\reg
254 "andw #-"STR(THREAD_SIZE)","#tmp"\n\t" \
/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/linux/
Dlibcfs.h88 #define LUSTRE_TRACE_SIZE (THREAD_SIZE >> 5)
92 # define CDEBUG_STACK() (THREAD_SIZE - \
94 (THREAD_SIZE - 1)))
96 # define CDEBUG_STACK() (THREAD_SIZE - \
98 (THREAD_SIZE - 1)))
/linux-4.4.14/arch/metag/kernel/
Dirq.c21 u32 stack[THREAD_SIZE/sizeof(u32)];
60 sp &= THREAD_SIZE - 1; in do_IRQ()
62 if (unlikely(sp > (THREAD_SIZE - 1024))) in do_IRQ()
117 static char softirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
119 static char hardirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
131 irqctx = (union irq_ctx *) &hardirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
139 irqctx = (union irq_ctx *) &softirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
Dvmlinux.lds.S35 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
Dstacktrace.c70 if (fpnew < (ALIGN_DOWN((unsigned long)fp, THREAD_SIZE) + in unwind_frame()
/linux-4.4.14/arch/metag/include/asm/
Dthread_info.h59 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
61 #define STACK_WARN (THREAD_SIZE/8)
86 ~(THREAD_SIZE - 1)); in current_thread_info()
92 return addr == (void *) (((unsigned long) addr & ~(THREAD_SIZE - 1)) in kstack_end()
/linux-4.4.14/arch/c6x/include/asm/
Dthread_info.h21 #define THREAD_SIZE 4096 macro
25 #define THREAD_SIZE 8192 macro
30 #define THREAD_START_SP (THREAD_SIZE - 8)
/linux-4.4.14/arch/blackfin/include/asm/
Dthread_info.h26 #define THREAD_SIZE 8192 /* 2 pages */ macro
27 #define STACK_WARN (THREAD_SIZE/8)
71 return (struct thread_info *)((long)ti & ~((long)THREAD_SIZE-1)); in current_thread_info()
Dptrace.h37 (THREAD_SIZE - sizeof(struct pt_regs)))
/linux-4.4.14/arch/sh/kernel/
Dirq.c61 u32 stack[THREAD_SIZE/sizeof(u32)];
67 static char softirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
68 static char hardirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
125 irqctx = (union irq_ctx *)&hardirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
133 irqctx = (union irq_ctx *)&softirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
Ddumpstack.c93 ((unsigned long)sp & (~(THREAD_SIZE - 1))); in stack_reader_dump()
157 dump_mem("Stack: ", stack, THREAD_SIZE + in show_stack()
Dvmlinux.lds.S52 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
Dtraps.c35 dump_mem("Stack: ", regs->regs[15], THREAD_SIZE + in die()
Dptrace_64.c72 regs = (struct pt_regs*)((unsigned char *)task + THREAD_SIZE) - 1; in get_fpu_long()
114 regs = (struct pt_regs*)((unsigned char *)task + THREAD_SIZE) - 1; in put_fpu_long()
Dprocess_64.c334 ((struct pt_regs *)(THREAD_SIZE + (unsigned long) current) - 1); in flush_thread()
390 childregs = (struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1; in copy_thread()
Dhead_32.S336 2: .long init_thread_union+THREAD_SIZE
/linux-4.4.14/arch/x86/include/asm/
Dthread_info.h155 #define STACK_WARN (THREAD_SIZE/8)
166 return (struct thread_info *)(current_top_of_stack() - THREAD_SIZE); in current_thread_info()
189 _ASM_SUB $(THREAD_SIZE),reg ;
216 #define ASM_THREAD_INFO(field, reg, off) ((field)+(off)-THREAD_SIZE)(reg)
Dpage_64_types.h11 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
12 #define CURRENT_MASK (~(THREAD_SIZE - 1))
Dkprobes.h43 THREAD_SIZE - (unsigned long)(ADDR))) \
46 THREAD_SIZE - (unsigned long)(ADDR)))
Dptrace.h200 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack()
201 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack()
Dpage_32_types.h21 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
Dprocessor.h361 u32 stack[THREAD_SIZE/sizeof(u32)];
362 } __aligned(THREAD_SIZE);
729 __ptr += THREAD_SIZE - TOP_OF_KERNEL_STACK_PADDING; \
/linux-4.4.14/arch/arm64/include/asm/
Dthread_info.h32 #define THREAD_SIZE 16384 macro
33 #define THREAD_START_SP (THREAD_SIZE - 16)
79 (current_stack_pointer & ~(THREAD_SIZE - 1)); in current_thread_info()
/linux-4.4.14/arch/sh/include/asm/
Dptrace.h72 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack()
73 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack()
103 ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE) - 1)
Dkprobes.h15 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
17 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
Dthread_info.h48 #define THREAD_SIZE (1 << THREAD_SHIFT) macro
49 #define STACK_WARN (THREAD_SIZE >> 3)
86 : "1" (~(THREAD_SIZE - 1)) in current_thread_info()
Dentry-macros.S26 mov #((THREAD_SIZE - 1) >> 10) ^ 0xff, \tmp
/linux-4.4.14/arch/unicore32/include/asm/
Dthread_info.h21 #define THREAD_SIZE 8192 macro
22 #define THREAD_START_SP (THREAD_SIZE - 8)
101 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/linux-4.4.14/arch/tile/include/asm/
Dthread_info.h74 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
77 #define STACK_WARN (THREAD_SIZE/8)
87 ((struct thread_info *)(stack_pointer & -THREAD_SIZE))
Dprocessor.h190 .ksp = (unsigned long)init_stack + THREAD_SIZE - STACK_TOP_DELTA, \
228 ((unsigned long)(task)->stack + THREAD_SIZE - STACK_TOP_DELTA)
234 ((struct pt_regs *)((stack_pointer | (THREAD_SIZE - 1)) - \
Dkprobes.h53 (((unsigned long)current_thread_info()) + THREAD_SIZE - 32 \
/linux-4.4.14/arch/mips/include/asm/
Dthread_info.h85 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
86 #define THREAD_MASK (THREAD_SIZE - 1UL)
88 #define STACK_WARN (THREAD_SIZE / 8)
Dptrace.h103 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack()
104 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack()
178 (struct pt_regs *)((sp | (THREAD_SIZE - 1)) + 1 - 32) - 1; \
Dkprobes.h69 (((unsigned long)current_thread_info()) + THREAD_SIZE - 32 - sizeof(struct pt_regs))
Dprocessor.h361 THREAD_SIZE - 32 - sizeof(struct pt_regs))
Dcompat.h225 ((unsigned long) current_thread_info() + THREAD_SIZE - 32) - 1; in arch_compat_alloc_user_space()
/linux-4.4.14/arch/cris/include/asm/
Dprocessor.h32 #define THREAD_SIZE PAGE_SIZE macro
43 #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE)) - …
/linux-4.4.14/arch/h8300/include/asm/
Dptrace.h25 (THREAD_SIZE + (unsigned long)current_thread_info()) - 1)
29 ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE) - 1)
Dthread_info.h20 #define THREAD_SIZE 8192 /* 2 pages */ macro
63 : "i" (~(THREAD_SIZE-1) & 0xffff)); in current_thread_info()
/linux-4.4.14/arch/m32r/include/asm/
Dptrace.h40 ((struct pt_regs *)(task_stack_page(task) + THREAD_SIZE) - 1)
42 ((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
Dthread_info.h42 #define THREAD_SIZE (PAGE_SIZE << 1) macro
69 : "=r" (ti) : "i" (~(THREAD_SIZE - 1)) in current_thread_info()
/linux-4.4.14/arch/arm/include/asm/
Dthread_info.h20 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
21 #define THREAD_START_SP (THREAD_SIZE - 8)
94 (current_stack_pointer & ~(THREAD_SIZE - 1)); in current_thread_info()
Dptrace.h158 ((current_stack_pointer | (THREAD_SIZE - 1)) - 7) - 1; \
/linux-4.4.14/arch/powerpc/include/asm/
Dptrace.h122 ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
192 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack()
193 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack()
Dthread_info.h23 #define THREAD_SIZE (1 << THREAD_SHIFT) macro
/linux-4.4.14/arch/score/include/asm/
Dthread_info.h15 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
16 #define THREAD_MASK (THREAD_SIZE - _AC(1,UL))
Dprocessor.h99 ((unsigned long)task_stack_page(tsk) + THREAD_SIZE - 32)
/linux-4.4.14/arch/alpha/kernel/
Dvmlinux.lds.S47 . = ALIGN(THREAD_SIZE);
53 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
/linux-4.4.14/arch/arc/include/asm/
Dthread_info.h27 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
71 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
Dptrace.h139 unsigned long pg_start = (sp & ~(THREAD_SIZE - 1)); \
140 (struct pt_regs *)(pg_start + THREAD_SIZE) - 1; \
Dprocessor.h51 ((struct pt_regs *)(THREAD_SIZE + (void *)task_stack_page(p)) - 1)
Dunwind.h73 #define STACK_LIMIT(ptr) (((ptr) - 1) & ~(THREAD_SIZE - 1))
Dentry-compact.h296 bic \reg, sp, (THREAD_SIZE - 1)
Dentry.h224 add2 \out, \out, (THREAD_SIZE)/4
/linux-4.4.14/arch/nios2/include/asm/
Dthread_info.h25 #define THREAD_SIZE 8192 /* 2 * PAGE_SIZE */ macro
74 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
Dptrace.h74 ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE)\
Dprocessor.h89 ((struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1)
Dentry.h30 addi r24, r24, THREAD_SIZE-PT_REGS_SIZE
/linux-4.4.14/arch/microblaze/kernel/
Dtraps.c48 words_to_show = (THREAD_SIZE - (fp & (THREAD_SIZE - 1))) >> 2; in show_stack()
Dvmlinux.lds.S71 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
Dentry.S269 addik r1, r1, THREAD_SIZE + CONFIG_KERNEL_BASE_ADDR - CONFIG_KERNEL_START - PT_SIZE; \
300 addik r1, r1, THREAD_SIZE;
668 addik r1, r1, THREAD_SIZE;
801 addik r1, r1, THREAD_SIZE; /* calculate kernel stack pointer */
Dentry-nommu.S65 addik r1, r1, THREAD_SIZE - PT_SIZE
214 addik r1, r1, THREAD_SIZE - PT_SIZE
305 addik r1, r1, THREAD_SIZE - PT_SIZE /* get the kernel stack */
/linux-4.4.14/arch/um/include/asm/
Dthread_info.h40 #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE) macro
45 unsigned long mask = THREAD_SIZE - 1; in current_thread_info()
/linux-4.4.14/arch/s390/include/asm/
Dkprobes.h46 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
48 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
Dthread_info.h18 #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER) macro
Dprocessor.h187 (task_stack_page(tsk) + THREAD_SIZE) - 1)
/linux-4.4.14/arch/x86/kernel/
Ddumpstack_32.c21 if (p < irq || p >= (irq + THREAD_SIZE)) in is_irq_stack()
23 return irq + THREAD_SIZE; in is_irq_stack()
80 prev_esp = (u32 *)(end_stack - THREAD_SIZE); in dump_trace()
Dirq_32.c34 "=r" (sp) : "0" (THREAD_SIZE - 1)); in check_stack_overflow()
68 return (void *)(current_stack_pointer() & ~(THREAD_SIZE - 1)); in current_stack()
Dirq_64.c46 regs->sp <= curbase + THREAD_SIZE) in stack_overflow_check()
Ddumpstack.c87 if (p < end && p >= (end-THREAD_SIZE)) in valid_stack_ptr()
92 return p > t && p < t + THREAD_SIZE - size; in valid_stack_ptr()
Dvmlinux.lds.S129 INIT_TASK_DATA(THREAD_SIZE)
Ddumpstack_64.c123 addr = ((unsigned long)stack & (~(THREAD_SIZE - 1))); in analyze_stack()
Dprocess_32.c305 THREAD_SIZE); in __switch_to()
/linux-4.4.14/arch/avr32/include/asm/
Dthread_info.h14 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
51 unsigned long addr = ~(THREAD_SIZE - 1); in current_thread_info()
Dprocessor.h151 ((struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1)
Dasm.h40 andl \reg, ~(THREAD_SIZE - 1) & 0xffff
/linux-4.4.14/arch/m68k/coldfire/
Dentry.S76 andl #-THREAD_SIZE,%d2 /* at start of kernel stack */
113 andl #-THREAD_SIZE,%d1 /* at base of kernel stack */
137 andl #-THREAD_SIZE,%d1 /* at base of kernel stack */
Dhead.S272 lea THREAD_SIZE(%a0),%sp
/linux-4.4.14/arch/avr32/kernel/
Dprocess.c114 && (p < (unsigned long)tinfo + THREAD_SIZE - 3); in valid_stack_ptr()
197 THREAD_SIZE + (unsigned long)tinfo); in show_stack_log_lvl()
336 BUG_ON(fp < stack_page || fp > (THREAD_SIZE + stack_page)); in get_wchan()
349 BUG_ON(sp < stack_page || sp > (THREAD_SIZE + stack_page)); in get_wchan()
Dstacktrace.c33 high = low + THREAD_SIZE; in save_stack_trace()
Dvmlinux.lds.S68 INIT_TASK_DATA(THREAD_SIZE)
Dptrace.c28 THREAD_SIZE - sizeof(struct pt_regs)); in get_user_regs()
/linux-4.4.14/arch/sparc/include/asm/
Dptrace.h36 ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
105 ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
Dthread_info_64.h103 #define THREAD_SIZE (2*PAGE_SIZE) macro
106 #define THREAD_SIZE PAGE_SIZE macro
Dthread_info_32.h80 #define THREAD_SIZE (2 * PAGE_SIZE) macro
/linux-4.4.14/arch/h8300/kernel/
Dtraps.c128 if (((unsigned long)stack & (THREAD_SIZE - 1)) == 0) in show_stack()
138 while (((unsigned long)stack & (THREAD_SIZE - 1)) != 0) { in show_stack()
Dvmlinux.lds.S49 RW_DATA_SECTION(0, PAGE_SIZE, THREAD_SIZE)
Dprocess.c111 childregs = (struct pt_regs *) (THREAD_SIZE + task_stack_page(p)) - 1; in copy_thread()
/linux-4.4.14/arch/microblaze/include/asm/
Dthread_info.h16 #define THREAD_SIZE (1 << THREAD_SHIFT) macro
97 return (struct thread_info *)(sp & ~(THREAD_SIZE-1)); in current_thread_info()
Dprocessor.h28 (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1)
/linux-4.4.14/arch/hexagon/kernel/
Dprocess.c79 childregs = (struct pt_regs *) (((unsigned long) ti + THREAD_SIZE) - in copy_thread()
170 fp >= (THREAD_SIZE - 8 + stack_page)) in get_wchan()
Dsmp.c156 thread_ptr = thread_ptr & ~(THREAD_SIZE-1); in start_secondary()
201 stack_start = ((void *) thread) + THREAD_SIZE; in __cpu_up()
Dstacktrace.c44 high = low + THREAD_SIZE; in save_stack_trace()
Dasm-offsets.c81 DEFINE(_THREAD_SIZE, THREAD_SIZE); in main()
Dtraps.c132 high = low + THREAD_SIZE - 8; in do_show_stack()
/linux-4.4.14/arch/openrisc/kernel/
Dtraps.c46 return p > (void *)tinfo && p < (void *)tinfo + THREAD_SIZE - 3; in valid_stack_ptr()
55 ((unsigned long)stack & (~(THREAD_SIZE - 1))); in show_trace()
210 if (((long)stack & (THREAD_SIZE - 1)) == 0) in nommu_dump_state()
221 while (((long)stack & (THREAD_SIZE - 1)) != 0) { in nommu_dump_state()
Dprocess.c150 unsigned long sp = (unsigned long)task_stack_page(p) + THREAD_SIZE; in copy_thread()
/linux-4.4.14/arch/xtensa/kernel/
Dstacktrace.c139 sp_start = a1 & ~(THREAD_SIZE - 1); in xtensa_backtrace_kernel()
140 sp_end = sp_start + THREAD_SIZE; in xtensa_backtrace_kernel()
190 sp_end = ALIGN(a1, THREAD_SIZE); in walk_stackframe()
Dirq.c48 sp &= THREAD_SIZE - 1; in do_IRQ()
Dprocess.c298 sp >= (stack_page + THREAD_SIZE) || in get_wchan()
Dvmlinux.lds.S116 RW_DATA_SECTION(XCHAL_ICACHE_LINESIZE, PAGE_SIZE, THREAD_SIZE)
/linux-4.4.14/arch/s390/kernel/
Ddumpstack.c88 (unsigned long) task_stack_page(task) + THREAD_SIZE); in show_trace()
91 S390_lowcore.thread_info + THREAD_SIZE); in show_trace()
109 if (((addr_t) stack & (THREAD_SIZE-1)) == 0) in show_stack()
Dvmlinux.lds.S53 RW_DATA_SECTION(0x100, PAGE_SIZE, THREAD_SIZE)
Dstacktrace.c81 S390_lowcore.thread_info + THREAD_SIZE, 1); in save_stack_trace()
Dhead64.S39 aghi %r15,1<<(PAGE_SHIFT+THREAD_ORDER) # init_task_union + THREAD_SIZE
Dperf_event.c282 S390_lowcore.thread_info + THREAD_SIZE); in perf_callchain_kernel()
/linux-4.4.14/arch/cris/kernel/
Dtraps.c53 while (((long)stack & (THREAD_SIZE - 1)) != 0) { in show_trace()
123 if (((long)stack & (THREAD_SIZE-1)) == 0) in show_stack()
Dstacktrace.c10 unsigned long high = ALIGN(sp, THREAD_SIZE); in walk_stackframe()
/linux-4.4.14/arch/x86/xen/
Dxen-head.S43 mov $init_thread_union+THREAD_SIZE,%esp
46 mov $init_thread_union+THREAD_SIZE,%rsp
/linux-4.4.14/kernel/trace/
Dtrace_stack.c82 this_size = ((unsigned long)stack) & (THREAD_SIZE-1); in check_stack()
83 this_size = THREAD_SIZE - this_size; in check_stack()
141 (((unsigned long)start & ~(THREAD_SIZE-1)) + THREAD_SIZE); in check_stack()
/linux-4.4.14/arch/blackfin/kernel/
Ddumpstack.c53 endstack = (unsigned int *)(((unsigned int)(stack) & ~(THREAD_SIZE - 1)) + THREAD_SIZE); in show_stack()
Dstacktrace.c31 high = low + THREAD_SIZE; in save_stack_trace()
Dirqchip.c54 long sp = __get_SP() & (THREAD_SIZE - 1); in check_stack_overflow()
Dvmlinux.lds.S109 INIT_TASK_DATA(THREAD_SIZE)
/linux-4.4.14/arch/mips/oprofile/
Dbacktrace.c136 const unsigned long high_addr = low_addr + THREAD_SIZE; in do_user_backtrace()
170 const unsigned long low_addr = ALIGN(frame.sp, THREAD_SIZE); in op_mips_backtrace()
/linux-4.4.14/arch/m68k/68360/
Dentry.S75 andl #-THREAD_SIZE,%d1
101 andl #-THREAD_SIZE,%d1
/linux-4.4.14/arch/hexagon/include/uapi/asm/
Dptrace.h37 ((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
/linux-4.4.14/arch/unicore32/kernel/
Dvmlinux.lds.S49 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
Dstacktrace.c42 high = ALIGN(low, THREAD_SIZE); in unwind_frame()
Dtraps.c202 THREAD_SIZE + (unsigned long)task_stack_page(tsk)); in __die()
/linux-4.4.14/arch/score/kernel/
Dvmlinux.lds.S57 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
/linux-4.4.14/arch/nios2/kernel/
Dvmlinux.lds.S64 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
Dentry.S39 .if THREAD_SIZE & 0xffff0000
40 andhi \reg, sp, %hi(~(THREAD_SIZE-1))
42 addi \reg, r0, %lo(~(THREAD_SIZE-1))
Dhead.S159 addi sp, r1, THREAD_SIZE
Dprocess.c166 (int)(((unsigned long) current) + THREAD_SIZE)); in dump()
/linux-4.4.14/arch/um/kernel/skas/
Dprocess.c36 set_sigstack(cpu0_irqstack, THREAD_SIZE); in start_uml()
/linux-4.4.14/arch/blackfin/mach-common/
Dhead.S109 sp.l = _init_thread_union + THREAD_SIZE;
110 sp.h = _init_thread_union + THREAD_SIZE;
Dsmp.c253 secondary_stack = task_stack_page(idle) + THREAD_SIZE; in __cpu_up()
/linux-4.4.14/arch/arm/kernel/
Dvmlinux.lds.S237 . = ALIGN(THREAD_SIZE);
251 INIT_TASK_DATA(THREAD_SIZE)
Dstacktrace.c32 high = ALIGN(low, THREAD_SIZE); in unwind_frame()
/linux-4.4.14/arch/hexagon/include/asm/
Dprocessor.h78 ((struct pt_regs *)(task_stack_page(task) + THREAD_SIZE) - 1)
Dthread_info.h33 #define THREAD_SIZE (1<<THREAD_SHIFT) macro
/linux-4.4.14/arch/frv/include/asm/
Dthread_info.h22 #define THREAD_SIZE 8192 macro
/linux-4.4.14/arch/mips/kernel/
Dperf_event.c56 sp <= stack_page + THREAD_SIZE - 32) in perf_callchain_kernel()
Dprocess.c121 childksp = (unsigned long)task_stack_page(p) + THREAD_SIZE - 32; in copy_thread()
457 *sp + sizeof(*regs) <= stack_page + THREAD_SIZE - 32) { in unwind_stack_by_address()
486 *sp + info.frame_size > stack_page + THREAD_SIZE - 32) in unwind_stack_by_address()
Dstacktrace.c46 sp <= stack_page + THREAD_SIZE - 32) in save_context_stack()
Dvmlinux.lds.S91 INIT_TASK_DATA(THREAD_SIZE)
/linux-4.4.14/arch/avr32/oprofile/
Dbacktrace.c31 && (p < (unsigned long)tinfo + THREAD_SIZE - 3); in valid_stack_ptr()
/linux-4.4.14/arch/um/include/shared/
Dcommon-offsets.h22 DEFINE(UM_THREAD_SIZE, THREAD_SIZE);
/linux-4.4.14/arch/openrisc/include/asm/
Dthread_info.h36 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
Dprocessor.h66 #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - S…
/linux-4.4.14/arch/mn10300/kernel/
Dvmlinux.lds.S48 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
Dtraps.c245 bottom = (stack + THREAD_SIZE) & ~(THREAD_SIZE - 1); in show_trace()
286 if (((long) stack & (THREAD_SIZE - 1)) == 0) in show_stack()
Dprocess.c151 c_ksp = (unsigned long) task_stack_page(p) + THREAD_SIZE; in copy_thread()
Dirq.c254 BUG_ON(sp - (sp & ~(THREAD_SIZE - 1)) < STACK_WARN); in do_IRQ()
/linux-4.4.14/arch/m32r/kernel/
Dvmlinux.lds.S49 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
Dentry.S125 ldi \reg, #-THREAD_SIZE
/linux-4.4.14/arch/avr32/boot/u-boot/
Dhead.S40 sub sp, -THREAD_SIZE
/linux-4.4.14/arch/tile/kernel/
Dvmlinux.lds.S76 RW_DATA_SECTION(L2_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
Dstack.c49 return sp >= kstack_base && sp < kstack_base + THREAD_SIZE; in in_kernel_stack()
200 unsigned long ksp0_base = ksp0 & -THREAD_SIZE; in validate_stack()
/linux-4.4.14/arch/xtensa/include/asm/
Dthread_info.h132 #define THREAD_SIZE 8192 //(2*PAGE_SIZE) macro
/linux-4.4.14/arch/parisc/include/asm/
Dthread_info.h40 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
/linux-4.4.14/arch/m68k/68000/
Dentry.S79 andl #-THREAD_SIZE,%d1
105 andl #-THREAD_SIZE,%d1
Dhead.S237 lea THREAD_SIZE(%a0),%sp
/linux-4.4.14/arch/parisc/kernel/
Dirq.c419 if (likely(stack_usage <= THREAD_SIZE)) in stack_overflow_check()
447 if (likely(stack_usage < (THREAD_SIZE - STACK_MARGIN))) in stack_overflow_check()
452 current->comm, sp, stack_start, stack_start + THREAD_SIZE); in stack_overflow_check()
/linux-4.4.14/arch/x86/lguest/
Dhead_32.S47 movl $(init_thread_union+THREAD_SIZE),%esp
/linux-4.4.14/arch/s390/oprofile/
Dbacktrace.c76 S390_lowcore.thread_info + THREAD_SIZE); in s390_backtrace()
/linux-4.4.14/arch/um/kernel/
Dstacktrace.c32 while (((long) sp & (THREAD_SIZE-1)) != 0) { in dump_trace()
/linux-4.4.14/arch/m68k/kernel/
Dvmlinux-sun3.lds29 RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) :data
Dvmlinux-std.lds32 RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE)
Dvmlinux-nommu.lds60 RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE)
Dtraps.c820 addr = (unsigned long)stack + THREAD_SIZE - 1; in show_trace()
821 endstack = (unsigned long *)(addr & -THREAD_SIZE); in show_trace()
949 endstack = (unsigned long *)(((unsigned long)stack + THREAD_SIZE - 1) & -THREAD_SIZE); in show_stack()
Dprocess.c140 frame = (struct fork_frame *) (task_stack_page(p) + THREAD_SIZE) - 1; in copy_thread()
/linux-4.4.14/arch/frv/kernel/
Dvmlinux.lds.S94 INIT_TASK_DATA(THREAD_SIZE)
Dprocess.c135 (task_stack_page(p) + THREAD_SIZE - FRV_FRAME0_SIZE); in copy_thread()
Dbreak.S26 .balign THREAD_SIZE
28 .space THREAD_SIZE - FRV_FRAME0_SIZE
/linux-4.4.14/arch/c6x/kernel/
Dvmlinux.lds.S110 INIT_TASK_DATA(THREAD_SIZE)
Dtraps.c398 endstack = (unsigned long *)(((unsigned long)stack + THREAD_SIZE - 1) in show_stack()
399 & -THREAD_SIZE); in show_stack()
Dasm-offsets.c109 DEFINE(KTHREAD_SIZE, THREAD_SIZE); in foo()
/linux-4.4.14/arch/arc/kernel/
Dvmlinux.lds.S115 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
/linux-4.4.14/arch/arm64/kernel/
Dstacktrace.c44 high = ALIGN(low, THREAD_SIZE); in unwind_frame()
Dvmlinux.lds.S162 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
Dprocess.c350 frame.sp >= stack_page + THREAD_SIZE || in get_wchan()
/linux-4.4.14/arch/alpha/include/asm/
Dthread_info.h52 #define THREAD_SIZE (2*PAGE_SIZE) macro
/linux-4.4.14/arch/ia64/include/asm/
Dthread_info.h37 #define THREAD_SIZE KERNEL_STACK_SIZE macro
/linux-4.4.14/arch/powerpc/perf/
Dcallchain.c44 if ((sp & ~(THREAD_SIZE - 1)) != (prev_sp & ~(THREAD_SIZE - 1))) in valid_next_sp()
/linux-4.4.14/fs/proc/
Dmeminfo.c180 global_page_state(NR_KERNEL_STACK) * THREAD_SIZE / 1024, in meminfo_proc_show()
/linux-4.4.14/arch/cris/arch-v32/kernel/
Dentry.S48 movs.w -8192, $r0 ; THREAD_SIZE = 8192
68 movs.w -8192, $r0 ; THREAD_SIZE = 8192.
505 movs.w -8192, $r9 ; THREAD_SIZE == 8192
/linux-4.4.14/arch/tile/mm/
Dfault.c293 stack_offset = stack_pointer & (THREAD_SIZE-1); in handle_page_fault()
294 if (stack_offset < THREAD_SIZE / 8) { in handle_page_fault()
/linux-4.4.14/arch/sh/lib/
Dmcount.S45 mov #(THREAD_SIZE >> 10), r0; \
/linux-4.4.14/drivers/misc/
Dlkdtm.c63 #define REC_STACK_SIZE (THREAD_SIZE / 8)
65 #define REC_NUM_DEFAULT ((THREAD_SIZE / REC_STACK_SIZE) * 2)

12