Home
last modified time | relevance | path

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

123456789

/Linux-v4.19/arch/sparc/kernel/
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()
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-v4.19/arch/powerpc/kernel/
Dsetup_32.c209 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE)); in irqstack_early_init()
211 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE)); in irqstack_early_init()
230 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE)); in exc_lvl_early_init()
233 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE)); in exc_lvl_early_init()
235 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE)); in exc_lvl_early_init()
Dsetup_64.c634 pa = memblock_alloc_base_nid(THREAD_SIZE, THREAD_SIZE, limit, in alloc_stack()
637 pa = memblock_alloc_base(THREAD_SIZE, THREAD_SIZE, limit); in alloc_stack()
671 paca_ptrs[i]->crit_kstack = sp + THREAD_SIZE; in exc_lvl_early_init()
675 paca_ptrs[i]->dbg_kstack = sp + THREAD_SIZE; in exc_lvl_early_init()
679 paca_ptrs[i]->mc_kstack = sp + THREAD_SIZE; in exc_lvl_early_init()
735 memset(ti, 0, THREAD_SIZE); in emergency_stack_init()
737 paca_ptrs[i]->emergency_sp = (void *)ti + THREAD_SIZE; in emergency_stack_init()
742 memset(ti, 0, THREAD_SIZE); in emergency_stack_init()
744 paca_ptrs[i]->nmi_emergency_sp = (void *)ti + THREAD_SIZE; in emergency_stack_init()
748 memset(ti, 0, THREAD_SIZE); in emergency_stack_init()
[all …]
/Linux-v4.19/arch/m68k/include/asm/
Dthread_info.h16 #define THREAD_SIZE 4096 macro
18 #define THREAD_SIZE 8192 macro
21 #define THREAD_SIZE PAGE_SIZE macro
23 #define THREAD_SIZE_ORDER ((THREAD_SIZE / PAGE_SIZE) - 1)
53 : "di" (~(THREAD_SIZE-1)) in current_thread_info()
/Linux-v4.19/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-v4.19/arch/h8300/kernel/
Dtraps.c130 if (((unsigned long)stack & (THREAD_SIZE - 1)) >= in show_stack()
131 THREAD_SIZE-4) in show_stack()
141 while (((unsigned long)stack & (THREAD_SIZE - 1)) < THREAD_SIZE-4) { in show_stack()
/Linux-v4.19/arch/sh/kernel/
Dirq.c62 u32 stack[THREAD_SIZE/sizeof(u32)];
68 static char softirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
69 static char hardirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
126 irqctx = (union irq_ctx *)&hardirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
134 irqctx = (union irq_ctx *)&softirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
/Linux-v4.19/include/linux/sched/
Dtask_stack.h53 return (unsigned long *)((unsigned long)task_thread_info(p) + THREAD_SIZE) - 1; in end_of_stack()
85 return (obj >= stack) && (obj < (stack + THREAD_SIZE)); in object_is_on_stack()
118 return !(((unsigned long)addr+sizeof(void*)-1) & (THREAD_SIZE-sizeof(void*))); in kstack_end()
/Linux-v4.19/arch/sh/include/asm/
Dptrace.h73 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack()
74 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack()
104 ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE) - 1)
Dthread_info.h49 #define THREAD_SIZE (1 << THREAD_SHIFT) macro
50 #define STACK_WARN (THREAD_SIZE >> 3)
84 : "1" (~(THREAD_SIZE - 1)) in current_thread_info()
Dkprobes.h19 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
21 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
/Linux-v4.19/arch/unicore32/include/asm/
Dthread_info.h21 #define THREAD_SIZE 8192 macro
22 #define THREAD_START_SP (THREAD_SIZE - 8)
98 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/Linux-v4.19/arch/mips/include/asm/
Dthread_info.h82 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
83 #define THREAD_MASK (THREAD_SIZE - 1UL)
85 #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; \
/Linux-v4.19/arch/arm64/include/asm/
Dmemory.h106 #define THREAD_SIZE (UL(1) << THREAD_SHIFT) macro
114 #define THREAD_ALIGN (2 * THREAD_SIZE)
116 #define THREAD_ALIGN THREAD_SIZE
119 #define IRQ_STACK_SIZE THREAD_SIZE
/Linux-v4.19/arch/arm/include/asm/
Dthread_info.h20 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
21 #define THREAD_START_SP (THREAD_SIZE - 8)
91 (current_stack_pointer & ~(THREAD_SIZE - 1)); in current_thread_info()
/Linux-v4.19/arch/powerpc/include/asm/
Dptrace.h123 ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
193 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack()
194 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack()
/Linux-v4.19/drivers/misc/lkdtm/
Dbugs.c27 #define REC_STACK_SIZE (THREAD_SIZE / 8)
29 #define REC_NUM_DEFAULT ((THREAD_SIZE / REC_STACK_SIZE) * 2)
249 const unsigned char *ptr = stack + THREAD_SIZE; in lkdtm_STACK_GUARD_PAGE_TRAILING()
/Linux-v4.19/arch/x86/include/asm/
Dpage_64_types.h16 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
17 #define CURRENT_MASK (~(THREAD_SIZE - 1))
/Linux-v4.19/arch/h8300/include/asm/
Dptrace.h28 (THREAD_SIZE + (unsigned long)current_thread_info()) - 1)
32 ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE) - 1)
/Linux-v4.19/arch/arc/include/asm/
Dthread_info.h27 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
68 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/Linux-v4.19/arch/nios2/include/asm/
Dthread_info.h25 #define THREAD_SIZE 8192 /* 2 * PAGE_SIZE */ macro
71 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/Linux-v4.19/arch/alpha/kernel/
Dvmlinux.lds.S49 . = ALIGN(THREAD_SIZE);
55 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
/Linux-v4.19/arch/s390/include/asm/
Dkprobes.h47 (((unsigned long)task_stack_page(current)) + THREAD_SIZE - (ADDR))) \
49 : (((unsigned long)task_stack_page(current)) + THREAD_SIZE - (ADDR)))

123456789