Home
last modified time | relevance | path

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

12345678

/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.c622 softirq_stack[i] = memblock_alloc_node(THREAD_SIZE, in alloc_irqstack_bootmem()
623 THREAD_SIZE, node); in alloc_irqstack_bootmem()
626 __func__, THREAD_SIZE, THREAD_SIZE, node); in alloc_irqstack_bootmem()
627 hardirq_stack[i] = memblock_alloc_node(THREAD_SIZE, in alloc_irqstack_bootmem()
628 THREAD_SIZE, node); in alloc_irqstack_bootmem()
631 __func__, THREAD_SIZE, THREAD_SIZE, node); in alloc_irqstack_bootmem()
/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)
50 : "di" (~(THREAD_SIZE-1)) in current_thread_info()
/arch/riscv/include/asm/
Dthread_info.h26 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
34 #define THREAD_ALIGN (2 * THREAD_SIZE)
36 #define THREAD_ALIGN THREAD_SIZE
/arch/h8300/kernel/
Dtraps.c127 if (((unsigned long)stack & (THREAD_SIZE - 1)) >= in show_stack()
128 THREAD_SIZE-4) in show_stack()
138 while (((unsigned long)stack & (THREAD_SIZE - 1)) < THREAD_SIZE-4) { in show_stack()
/arch/s390/boot/
Dkaslr.c144 pos += (end - start - kernel_size) / THREAD_SIZE + 1; in count_valid_kernel_positions()
165 if ((end - start - kernel_size) / THREAD_SIZE + 1 >= pos) in position_to_address()
166 return start + (pos - 1) * THREAD_SIZE; in position_to_address()
167 pos -= (end - start - kernel_size) / THREAD_SIZE + 1; in position_to_address()
193 safe_addr = ALIGN(safe_addr, THREAD_SIZE); in get_random_base()
/arch/sh/kernel/
Dirq.c63 u32 stack[THREAD_SIZE/sizeof(u32)];
69 static char softirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
70 static char hardirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
127 irqctx = (union irq_ctx *)&hardirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
135 irqctx = (union irq_ctx *)&softirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
/arch/x86/include/asm/
Dpage_32_types.h23 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
25 #define IRQ_STACK_SIZE THREAD_SIZE
/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)
Dkprobes.h19 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
21 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
Dthread_info.h47 #define THREAD_SIZE (1 << THREAD_SHIFT) macro
48 #define STACK_WARN (THREAD_SIZE >> 3)
80 : "1" (~(THREAD_SIZE - 1)) in current_thread_info()
/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)
Dthread_info.h21 #define THREAD_SIZE 8192 /* 2 pages */ macro
57 : "i" (~(THREAD_SIZE-1) & 0xffff)); in current_thread_info()
/arch/mips/include/asm/
Dthread_info.h94 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
95 #define THREAD_MASK (THREAD_SIZE - 1UL)
97 #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; \
/arch/arm/include/asm/
Dthread_info.h25 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
26 #define THREAD_START_SP (THREAD_SIZE - 8)
87 (current_stack_pointer & ~(THREAD_SIZE - 1)); in current_thread_info()
/arch/alpha/kernel/
Dvmlinux.lds.S47 . = ALIGN(THREAD_SIZE);
53 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
/arch/s390/kernel/
Ddumpstack.c61 return in_stack(sp, info, STACK_TYPE_TASK, stack, stack + THREAD_SIZE); in in_task_stack()
70 return in_stack(sp, info, STACK_TYPE_IRQ, top - THREAD_SIZE, top); in in_irq_stack()
79 return in_stack(sp, info, STACK_TYPE_NODAT, top - THREAD_SIZE, top); in in_nodat_stack()
88 return in_stack(sp, info, STACK_TYPE_MCCK, top - THREAD_SIZE, top); in in_mcck_stack()
97 return in_stack(sp, info, STACK_TYPE_RESTART, top - THREAD_SIZE, top); in in_restart_stack()
/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()
/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)))
/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()
/arch/microblaze/kernel/
Dtraps.c49 words_to_show = (THREAD_SIZE - (fp & (THREAD_SIZE - 1))) >> 2; in show_stack()
/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()
/arch/arm64/kernel/
Defi.c153 static_assert(THREAD_SIZE >= SZ_8K);
162 p = __vmalloc_node(THREAD_SIZE, THREAD_ALIGN, GFP_KERNEL, in arm64_efi_rt_init()
170 efi_rt_stack_top = p + THREAD_SIZE; in arm64_efi_rt_init()

12345678