Home
last modified time | relevance | path

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

1234567

/arch/sparc/kernel/
Dkstack.h15 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
21 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
25 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
38 addr <= (base + THREAD_SIZE - sizeof(*regs))) in kstack_is_trap_frame()
44 addr <= (base + THREAD_SIZE - sizeof(*regs))) in kstack_is_trap_frame()
48 addr <= (base + THREAD_SIZE - sizeof(*regs))) in kstack_is_trap_frame()
Dtrampoline_32.S66 sethi %hi(THREAD_SIZE - STACKFRAME_SZ), %sp
67 or %sp, %lo(THREAD_SIZE - STACKFRAME_SZ), %sp
143 sethi %hi(THREAD_SIZE - STACKFRAME_SZ), %sp
144 or %sp, %lo(THREAD_SIZE - STACKFRAME_SZ), %sp
/arch/powerpc/kernel/
Dsetup_32.c243 __va(lmb_alloc(THREAD_SIZE, THREAD_SIZE)); in irqstack_early_init()
245 __va(lmb_alloc(THREAD_SIZE, THREAD_SIZE)); in irqstack_early_init()
261 __va(lmb_alloc(THREAD_SIZE, THREAD_SIZE)); in exc_lvl_early_init()
264 __va(lmb_alloc(THREAD_SIZE, THREAD_SIZE)); in exc_lvl_early_init()
266 __va(lmb_alloc(THREAD_SIZE, THREAD_SIZE)); in exc_lvl_early_init()
Dsetup_64.c467 __va(lmb_alloc_base(THREAD_SIZE, in irqstack_early_init()
468 THREAD_SIZE, 0x10000000)); in irqstack_early_init()
470 __va(lmb_alloc_base(THREAD_SIZE, in irqstack_early_init()
471 THREAD_SIZE, 0x10000000)); in irqstack_early_init()
500 sp = lmb_alloc_base(THREAD_SIZE, THREAD_SIZE, limit); in emergency_stack_init()
501 sp += THREAD_SIZE; in emergency_stack_init()
/arch/x86/include/asm/
Dthread_info.h163 #define STACK_WARN (THREAD_SIZE/8)
179 (current_stack_pointer & ~(THREAD_SIZE - 1)); in current_thread_info()
186 movl $-THREAD_SIZE, reg; \
191 andl $-THREAD_SIZE, reg
207 ti = (void *)(read_pda(kernelstack) + PDA_STACKOFFSET - THREAD_SIZE); in current_thread_info()
215 asm("andq %%rsp,%0; " : "=r" (ti) : "0" (~(THREAD_SIZE - 1))); in stack_thread_info()
224 subq $(THREAD_SIZE-PDA_STACKOFFSET),reg
Dkprobes.h40 THREAD_SIZE - (unsigned long)(ADDR))) \
43 THREAD_SIZE - (unsigned long)(ADDR)))
Dpage_64.h7 #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER) macro
8 #define CURRENT_MASK (~(THREAD_SIZE - 1))
/arch/mips/include/asm/
Dthread_info.h82 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro
83 #define THREAD_MASK (THREAD_SIZE - 1UL)
92 ret = kzalloc(THREAD_SIZE, GFP_KERNEL); \
97 #define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL)
/arch/blackfin/include/asm/
Dthread_info.h46 #define THREAD_SIZE 8192 /* 2 pages */ macro
47 #define STACK_WARN (THREAD_SIZE/8)
98 return (struct thread_info *)((long)ti & ~((long)THREAD_SIZE-1)); in current_thread_info()
/arch/x86/kernel/
Dirq_32.c35 "=r" (sp) : "0" (THREAD_SIZE - 1)); in check_stack_overflow()
57 u32 stack[THREAD_SIZE/sizeof(u32)];
63 static char softirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
64 static char hardirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
131 irqctx = (union irq_ctx*) &hardirq_stack[cpu*THREAD_SIZE]; in irq_ctx_init()
140 irqctx = (union irq_ctx *) &softirq_stack[cpu*THREAD_SIZE]; in irq_ctx_init()
/arch/sh/kernel/
Dirq.c77 u32 stack[THREAD_SIZE/sizeof(u32)];
99 "=r" (sp) : "0" (THREAD_SIZE - 1)); in do_IRQ()
160 static char softirq_stack[NR_CPUS * THREAD_SIZE]
163 static char hardirq_stack[NR_CPUS * THREAD_SIZE]
176 irqctx = (union irq_ctx *)&hardirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
185 irqctx = (union irq_ctx *)&softirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
/arch/sh/include/asm/
Dptrace.h124 ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE \
127 ((struct pt_dspregs *) (task_stack_page(task) + THREAD_SIZE \
131 ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE \
Dthread_info.h41 #define THREAD_SIZE (1 << THREAD_SHIFT) macro
42 #define STACK_WARN (THREAD_SIZE >> 3)
82 : "1" (~(THREAD_SIZE - 1)) in current_thread_info()
Dkprobes.h15 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
17 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
/arch/cris/include/asm/
Dprocessor.h33 #define THREAD_SIZE PAGE_SIZE macro
44 #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE)) - …
/arch/arm/include/asm/
Dthread_info.h19 #define THREAD_SIZE 8192 macro
20 #define THREAD_START_SP (THREAD_SIZE - 8)
97 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/arch/m68k/include/asm/
Dthread_info_no.h29 #define THREAD_SIZE (PAGE_SIZE<<THREAD_SIZE_ORDER) macro
69 : "di" (~(THREAD_SIZE-1)) in current_thread_info()
/arch/h8300/include/asm/
Dthread_info.h53 #define THREAD_SIZE 8192 /* 2 pages */ macro
64 : "i" (~(THREAD_SIZE-1)) in current_thread_info()
/arch/arm/oprofile/
Dbacktrace.c73 unsigned long base = ((unsigned long)regs) & ~(THREAD_SIZE - 1); in arm_backtrace()
74 walk_stackframe(regs->ARM_fp, base, base + THREAD_SIZE, in arm_backtrace()
/arch/sh/oprofile/
Dbacktrace.c72 unsigned long stack_base = (stack & ~(THREAD_SIZE - 1)) + THREAD_SIZE; in valid_kernel_stack()
/arch/s390/include/asm/
Dkprobes.h45 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
47 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
Dthread_info.h30 #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER) macro
75 return (struct thread_info *)((*(unsigned long *) __LC_KERNEL_STACK)-THREAD_SIZE); in current_thread_info()
/arch/um/include/asm/
Dthread_info.h46 #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE) macro
51 unsigned long mask = THREAD_SIZE - 1; in current_thread_info()
/arch/avr32/kernel/
Dprocess.c160 && (p < (unsigned long)tinfo + THREAD_SIZE - 3); in valid_stack_ptr()
243 THREAD_SIZE + (unsigned long)tinfo); in show_stack_log_lvl()
341 childregs = ((struct pt_regs *)(THREAD_SIZE + (unsigned long)task_stack_page(p))) - 1; in copy_thread()
347 childregs->sp = (unsigned long)task_stack_page(p) + THREAD_SIZE; in copy_thread()
429 BUG_ON(fp < stack_page || fp > (THREAD_SIZE + stack_page)); in get_wchan()
442 BUG_ON(sp < stack_page || sp > (THREAD_SIZE + stack_page)); in get_wchan()
/arch/x86/xen/
Dxen-head.S21 mov $init_thread_union+THREAD_SIZE,%esp
24 mov $init_thread_union+THREAD_SIZE,%rsp

1234567