Home
last modified time | relevance | path

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

12345678910

/OK3568_Linux_fs/kernel/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
H A Dsetup_64.c624 softirq_stack[i] = memblock_alloc_node(THREAD_SIZE, in alloc_irqstack_bootmem()
625 THREAD_SIZE, node); in alloc_irqstack_bootmem()
628 __func__, THREAD_SIZE, THREAD_SIZE, node); in alloc_irqstack_bootmem()
629 hardirq_stack[i] = memblock_alloc_node(THREAD_SIZE, in alloc_irqstack_bootmem()
630 THREAD_SIZE, node); in alloc_irqstack_bootmem()
633 __func__, THREAD_SIZE, THREAD_SIZE, node); in alloc_irqstack_bootmem()
/OK3568_Linux_fs/kernel/arch/m68k/include/asm/
H A 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()
/OK3568_Linux_fs/kernel/include/linux/sched/
H A Dtask_stack.h29 return (unsigned long *)((unsigned long)task->stack + THREAD_SIZE) - 1; in end_of_stack()
57 return (unsigned long *)((unsigned long)task_thread_info(p) + THREAD_SIZE) - 1; in end_of_stack()
89 return (obj >= stack) && (obj < (stack + THREAD_SIZE)); in object_is_on_stack()
122 return !(((unsigned long)addr+sizeof(void*)-1) & (THREAD_SIZE-sizeof(void*))); in kstack_end()
/OK3568_Linux_fs/kernel/arch/s390/boot/
H A Dkaslr.c143 pos += (end - start - kernel_size) / THREAD_SIZE + 1; in count_valid_kernel_positions()
164 if ((end - start - kernel_size) / THREAD_SIZE + 1 >= pos) in position_to_address()
165 return start + (pos - 1) * THREAD_SIZE; in position_to_address()
166 pos -= (end - start - kernel_size) / THREAD_SIZE + 1; in position_to_address()
186 safe_addr = ALIGN(safe_addr, THREAD_SIZE); in get_random_base()
/OK3568_Linux_fs/kernel/arch/sh/kernel/
H A 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()
/OK3568_Linux_fs/kernel/arch/h8300/kernel/
H A 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()
/OK3568_Linux_fs/kernel/arch/c6x/include/asm/
H A Dthread_info.h18 #define THREAD_SIZE 4096 macro
22 #define THREAD_SIZE 8192 macro
27 #define THREAD_START_SP (THREAD_SIZE - 8)
/OK3568_Linux_fs/kernel/arch/sh/include/asm/
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 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()
H A Dkprobes.h19 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
21 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
/OK3568_Linux_fs/kernel/arch/mips/include/asm/
H A Dthread_info.h100 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
101 #define THREAD_MASK (THREAD_SIZE - 1UL)
103 #define STACK_WARN (THREAD_SIZE / 8)
H A 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; \
/OK3568_Linux_fs/kernel/arch/arm/include/asm/
H A Dthread_info.h17 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
18 #define THREAD_START_SP (THREAD_SIZE - 8)
86 (current_stack_pointer & ~(THREAD_SIZE - 1)); in current_thread_info()
/OK3568_Linux_fs/kernel/arch/s390/kernel/
H A 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_RESTART, top - THREAD_SIZE, top); in in_restart_stack()
/OK3568_Linux_fs/kernel/arch/arm64/kernel/
H A Defi.c152 static_assert(THREAD_SIZE >= SZ_8K);
161 p = __vmalloc_node(THREAD_SIZE, THREAD_ALIGN, GFP_KERNEL, in arm64_efi_rt_init()
169 efi_rt_stack_top = p + THREAD_SIZE; in arm64_efi_rt_init()
/OK3568_Linux_fs/kernel/arch/x86/include/asm/
H A Dpage_32_types.h23 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
25 #define IRQ_STACK_SIZE THREAD_SIZE
/OK3568_Linux_fs/kernel/arch/h8300/include/asm/
H A Dptrace.h28 (THREAD_SIZE + (unsigned long)current_thread_info()) - 1)
32 ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE) - 1)
/OK3568_Linux_fs/kernel/arch/arm64/include/asm/
H A Dmemory.h98 #define THREAD_SIZE (UL(1) << THREAD_SHIFT) macro
106 #define THREAD_ALIGN (2 * THREAD_SIZE)
108 #define THREAD_ALIGN THREAD_SIZE
111 #define IRQ_STACK_SIZE THREAD_SIZE
/OK3568_Linux_fs/kernel/arch/alpha/kernel/
H A Dvmlinux.lds.S47 . = ALIGN(THREAD_SIZE);
53 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
/OK3568_Linux_fs/kernel/arch/s390/include/asm/
H A Dkprobes.h47 (((unsigned long)task_stack_page(current)) + THREAD_SIZE - (ADDR))) \
49 : (((unsigned long)task_stack_page(current)) + THREAD_SIZE - (ADDR)))
/OK3568_Linux_fs/kernel/arch/arc/include/asm/
H A 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()
/OK3568_Linux_fs/kernel/arch/nios2/include/asm/
H A Dthread_info.h25 #define THREAD_SIZE 8192 /* 2 * PAGE_SIZE */ macro
71 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/OK3568_Linux_fs/kernel/arch/microblaze/kernel/
H A Dtraps.c49 words_to_show = (THREAD_SIZE - (fp & (THREAD_SIZE - 1))) >> 2; in show_stack()

12345678910