Home
last modified time | relevance | path

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

12345678910

/Linux-v5.4/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
Dsetup_64.c625 softirq_stack[i] = memblock_alloc_node(THREAD_SIZE, in alloc_irqstack_bootmem()
626 THREAD_SIZE, node); in alloc_irqstack_bootmem()
629 __func__, THREAD_SIZE, THREAD_SIZE, node); in alloc_irqstack_bootmem()
630 hardirq_stack[i] = memblock_alloc_node(THREAD_SIZE, in alloc_irqstack_bootmem()
631 THREAD_SIZE, node); in alloc_irqstack_bootmem()
634 __func__, THREAD_SIZE, THREAD_SIZE, node); in alloc_irqstack_bootmem()
/Linux-v5.4/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-v5.4/arch/c6x/include/asm/
Dthread_info.h18 #define THREAD_SIZE 4096 macro
22 #define THREAD_SIZE 8192 macro
27 #define THREAD_START_SP (THREAD_SIZE - 8)
/Linux-v5.4/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-v5.4/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-v5.4/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-v5.4/arch/sh/include/asm/
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)
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-v5.4/arch/unicore32/include/asm/
Dthread_info.h18 #define THREAD_SIZE 8192 macro
19 #define THREAD_START_SP (THREAD_SIZE - 8)
95 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/Linux-v5.4/arch/x86/include/asm/
Dpage_32_types.h23 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
25 #define IRQ_STACK_SIZE THREAD_SIZE
/Linux-v5.4/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.h98 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack()
99 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack()
173 (struct pt_regs *)((sp | (THREAD_SIZE - 1)) + 1 - 32) - 1; \
/Linux-v5.4/arch/powerpc/kernel/
Dsetup_64.c647 ptr = memblock_alloc_try_nid(THREAD_SIZE, THREAD_SIZE, in alloc_stack()
682 paca_ptrs[i]->crit_kstack = sp + THREAD_SIZE; in exc_lvl_early_init()
686 paca_ptrs[i]->dbg_kstack = sp + THREAD_SIZE; in exc_lvl_early_init()
690 paca_ptrs[i]->mc_kstack = sp + THREAD_SIZE; in exc_lvl_early_init()
725 paca_ptrs[i]->emergency_sp = alloc_stack(limit, i) + THREAD_SIZE; in emergency_stack_init()
729 paca_ptrs[i]->nmi_emergency_sp = alloc_stack(limit, i) + THREAD_SIZE; in emergency_stack_init()
732 paca_ptrs[i]->mc_emergency_sp = alloc_stack(limit, i) + THREAD_SIZE; in emergency_stack_init()
Dsetup_32.c140 void *ptr = memblock_alloc(THREAD_SIZE, THREAD_SIZE); in alloc_stack()
144 THREAD_SIZE, (void *)_RET_IP_); in alloc_stack()
/Linux-v5.4/arch/arm/include/asm/
Dthread_info.h17 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
18 #define THREAD_START_SP (THREAD_SIZE - 8)
91 (current_stack_pointer & ~(THREAD_SIZE - 1)); in current_thread_info()
/Linux-v5.4/arch/s390/kernel/
Ddumpstack.c60 return in_stack(sp, info, STACK_TYPE_TASK, stack, stack + THREAD_SIZE); in in_task_stack()
69 return in_stack(sp, info, STACK_TYPE_IRQ, top - THREAD_SIZE, top); in in_irq_stack()
78 return in_stack(sp, info, STACK_TYPE_NODAT, top - THREAD_SIZE, top); in in_nodat_stack()
87 return in_stack(sp, info, STACK_TYPE_RESTART, top - THREAD_SIZE, top); in in_restart_stack()
/Linux-v5.4/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-v5.4/arch/arc/include/asm/
Dthread_info.h24 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
65 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/Linux-v5.4/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-v5.4/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)))
/Linux-v5.4/arch/alpha/kernel/
Dvmlinux.lds.S49 . = ALIGN(THREAD_SIZE);
55 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
/Linux-v5.4/arch/um/include/asm/
Dthread_info.h10 #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE) macro
47 unsigned long mask = THREAD_SIZE - 1; in current_thread_info()

12345678910