Home
last modified time | relevance | path

Searched refs:THREAD_SIZE (Results 1 – 25 of 130) sorted by relevance

123456

/linux/arch/sparc/kernel/
H A Dkstack.h20 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
26 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
30 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
43 addr <= (base + THREAD_SIZE - sizeof(*regs))) in kstack_is_trap_frame()
49 addr <= (base + THREAD_SIZE - sizeof(*regs))) in kstack_is_trap_frame()
53 addr <= (base + THREAD_SIZE - sizeof(*regs))) in kstack_is_trap_frame()
71 orig_sp > (sp + THREAD_SIZE)) { in set_hardirq_stack()
72 sp += THREAD_SIZE - 192 - STACK_BIAS; in set_hardirq_stack()
H A Dtrampoline_32.S65 sethi %hi(THREAD_SIZE - STACKFRAME_SZ), %sp
66 or %sp, %lo(THREAD_SIZE - STACKFRAME_SZ), %sp
126 sethi %hi(THREAD_SIZE - STACKFRAME_SZ), %sp
127 or %sp, %lo(THREAD_SIZE - STACKFRAME_SZ), %sp
182 sethi %hi(THREAD_SIZE - STACKFRAME_SZ), %sp
183 or %sp, %lo(THREAD_SIZE - STACKFRAME_SZ), %sp
/linux/arch/riscv/include/asm/
H A Dthread_info.h22 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
30 #define THREAD_ALIGN (2 * THREAD_SIZE)
32 #define THREAD_ALIGN THREAD_SIZE
38 #define IRQ_STACK_SIZE THREAD_SIZE
/linux/include/linux/sched/
H A Dtask_stack.h31 return (unsigned long *)((unsigned long)task->stack + THREAD_SIZE) - 1; in end_of_stack()
59 return (unsigned long *)((unsigned long)task_thread_info(p) + THREAD_SIZE) - 1; in end_of_stack()
94 return (obj >= stack) && (obj < (stack + THREAD_SIZE)); in object_is_on_stack()
114 return !(((unsigned long)addr+sizeof(void*)-1) & (THREAD_SIZE-sizeof(void*))); in kstack_end()
/linux/arch/um/kernel/skas/
H A Dprocess.c30 char cpu_irqstacks[NR_CPUS][THREAD_SIZE] __aligned(THREAD_SIZE);
35 set_sigstack(cpu_irqstacks[0], THREAD_SIZE); in start_uml()
/linux/arch/arm/include/asm/
H A Dthread_info.h25 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
26 #define THREAD_START_SP (THREAD_SIZE - 8)
29 #define THREAD_ALIGN (2 * THREAD_SIZE)
31 #define THREAD_ALIGN THREAD_SIZE
/linux/arch/loongarch/include/asm/
H A Dthread_info.h49 #define THREAD_SIZE SZ_16K macro
50 #define THREAD_MASK (THREAD_SIZE - 1UL)
51 #define THREAD_SIZE_ORDER ilog2(THREAD_SIZE / PAGE_SIZE)
H A Dptrace.h87 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack()
88 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack()
173 #define current_pt_regs() ((struct pt_regs *)((current_stack_pointer | (THREAD_SIZE - 1)) + 1) - 1)
/linux/arch/sh/include/asm/
H A Dthread_info.h46 #define THREAD_SIZE (1 << THREAD_SHIFT) macro
47 #define STACK_WARN (THREAD_SIZE >> 3)
78 : "1" (~(THREAD_SIZE - 1)) in current_thread_info()
H A Dptrace.h96 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack()
97 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack()
127 ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE) - 1)
H A Dkprobes.h19 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
21 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
/linux/arch/um/include/linux/
H A Dsmp-internal.h15 extern char cpu_irqstacks[NR_CPUS][THREAD_SIZE] __aligned(THREAD_SIZE);
/linux/arch/powerpc/kernel/
H A Dsetup_64.c189 (THREAD_SIZE/2); in fixup_boot_paca()
715 ptr = memblock_alloc_try_nid(THREAD_SIZE, THREAD_ALIGN, in alloc_stack()
750 paca_ptrs[i]->crit_kstack = sp + THREAD_SIZE; in exc_lvl_early_init()
754 paca_ptrs[i]->dbg_kstack = sp + THREAD_SIZE; in exc_lvl_early_init()
758 paca_ptrs[i]->mc_kstack = sp + THREAD_SIZE; in exc_lvl_early_init()
802 paca_ptrs[i]->emergency_sp = alloc_stack(limit, i) + THREAD_SIZE; in emergency_stack_init()
806 paca_ptrs[i]->nmi_emergency_sp = alloc_stack(limit, i) + THREAD_SIZE; in emergency_stack_init()
809 paca_ptrs[i]->mc_emergency_sp = alloc_stack(mce_limit, i) + THREAD_SIZE; in emergency_stack_init()
/linux/arch/mips/include/asm/
H A Dthread_info.h98 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
99 #define THREAD_MASK (THREAD_SIZE - 1UL)
101 #define STACK_WARN (THREAD_SIZE / 8)
H A Dptrace.h100 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack()
101 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack()
177 (struct pt_regs *)((sp | (THREAD_SIZE - 1)) + 1 - 32) - 1; \
/linux/arch/m68k/include/asm/
H A Dthread_info.h23 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
51 : "di" (~(THREAD_SIZE-1)) in current_thread_info()
/linux/arch/nios2/include/asm/
H A Dthread_info.h25 #define THREAD_SIZE 8192 /* 2 * PAGE_SIZE */ macro
62 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/linux/arch/s390/include/asm/
H A Dkprobes.h48 (((unsigned long)task_stack_page(current)) + THREAD_SIZE - (ADDR))) \
50 : (((unsigned long)task_stack_page(current)) + THREAD_SIZE - (ADDR)))
/linux/arch/arc/include/asm/
H A Dthread_info.h24 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
62 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/linux/arch/microblaze/kernel/
H A Dtraps.c50 words_to_show = (THREAD_SIZE - (fp & (THREAD_SIZE - 1))) >> 2; in show_stack()
/linux/arch/powerpc/perf/
H A Dcallchain.c38 if ((sp & ~(THREAD_SIZE - 1)) != (prev_sp & ~(THREAD_SIZE - 1))) in valid_next_sp()
/linux/arch/m68k/coldfire/
H A Dentry.S71 andl #-THREAD_SIZE,%d2 /* at start of kernel stack */
108 andl #-THREAD_SIZE,%d1 /* at base of kernel stack */
132 andl #-THREAD_SIZE,%d1 /* at base of kernel stack */
/linux/arch/microblaze/include/asm/
H A Dthread_info.h13 #define THREAD_SIZE (1 << THREAD_SHIFT) macro
85 return (struct thread_info *)(sp & ~(THREAD_SIZE-1)); in current_thread_info()
/linux/arch/csky/include/asm/
H A Dpage.h12 #define THREAD_SIZE (PAGE_SIZE * 2) macro
13 #define THREAD_MASK (~(THREAD_SIZE - 1))
/linux/arch/arm64/include/asm/
H A Dstacktrace.h45 unsigned long high = low + THREAD_SIZE; in stackinfo_get_task()
111 unsigned long low = high - THREAD_SIZE; in stackinfo_get_efi()

123456