/linux-6.1.9/arch/sparc/kernel/ |
D | kstack.h | 20 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()
|
D | trampoline_32.S | 65 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
|
D | setup_64.c | 622 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()
|
/linux-6.1.9/arch/m68k/include/asm/ |
D | thread_info.h | 15 #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()
|
/linux-6.1.9/include/linux/sched/ |
D | task_stack.h | 29 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() 91 return (obj >= stack) && (obj < (stack + THREAD_SIZE)); in object_is_on_stack() 124 return !(((unsigned long)addr+sizeof(void*)-1) & (THREAD_SIZE-sizeof(void*))); in kstack_end()
|
/linux-6.1.9/arch/s390/boot/ |
D | kaslr.c | 144 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()
|
/linux-6.1.9/arch/sh/kernel/ |
D | irq.c | 63 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()
|
/linux-6.1.9/arch/arm/include/asm/ |
D | thread_info.h | 25 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro 26 #define THREAD_START_SP (THREAD_SIZE - 8) 29 #define THREAD_ALIGN (2 * THREAD_SIZE) 31 #define THREAD_ALIGN THREAD_SIZE
|
/linux-6.1.9/arch/riscv/include/asm/ |
D | thread_info.h | 26 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro 34 #define THREAD_ALIGN (2 * THREAD_SIZE) 36 #define THREAD_ALIGN THREAD_SIZE
|
/linux-6.1.9/arch/loongarch/include/asm/ |
D | thread_info.h | 59 #define THREAD_SIZE SZ_16K macro 60 #define THREAD_MASK (THREAD_SIZE - 1UL) 61 #define THREAD_SIZE_ORDER ilog2(THREAD_SIZE / PAGE_SIZE)
|
D | ptrace.h | 86 return ((addr & ~(THREAD_SIZE - 1)) == in regs_within_kernel_stack() 87 (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))); in regs_within_kernel_stack() 136 (struct pt_regs *)((sp | (THREAD_SIZE - 1)) + 1) - 1; \
|
/linux-6.1.9/arch/powerpc/kernel/ |
D | irq.c | 193 sp &= THREAD_SIZE - 1; in check_stack_overflow() 196 if (unlikely(sp < THREAD_SIZE / 4)) { in check_stack_overflow() 213 [sp] "b" (sp), [offset] "i" (THREAD_SIZE - STACK_FRAME_OVERHEAD), in call_do_softirq() 267 [sp] "b" (sp), [offset] "i" (THREAD_SIZE - STACK_FRAME_OVERHEAD), in call_do_irq() 282 cursp = (void *)(current_stack_pointer & ~(THREAD_SIZE - 1)); in __do_IRQ() 302 return __vmalloc_node(THREAD_SIZE, THREAD_ALIGN, THREADINFO_GFP, in alloc_vm_stack()
|
D | setup_64.c | 192 (THREAD_SIZE/2); in fixup_boot_paca() 718 ptr = memblock_alloc_try_nid(THREAD_SIZE, THREAD_ALIGN, in alloc_stack() 753 paca_ptrs[i]->crit_kstack = sp + THREAD_SIZE; in exc_lvl_early_init() 757 paca_ptrs[i]->dbg_kstack = sp + THREAD_SIZE; in exc_lvl_early_init() 761 paca_ptrs[i]->mc_kstack = sp + THREAD_SIZE; in exc_lvl_early_init() 805 paca_ptrs[i]->emergency_sp = alloc_stack(limit, i) + THREAD_SIZE; in emergency_stack_init() 809 paca_ptrs[i]->nmi_emergency_sp = alloc_stack(limit, i) + THREAD_SIZE; in emergency_stack_init() 812 paca_ptrs[i]->mc_emergency_sp = alloc_stack(mce_limit, i) + THREAD_SIZE; in emergency_stack_init()
|
/linux-6.1.9/arch/s390/kernel/ |
D | dumpstack.c | 61 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()
|
D | setup.c | 366 ret = __vmalloc_node(THREAD_SIZE, THREAD_SIZE, THREADINFO_GFP, in stack_alloc() 446 + THREAD_SIZE - STACK_FRAME_OVERHEAD - sizeof(struct pt_regs); in setup_lowcore_dat_off() 464 restart_stack = memblock_alloc(THREAD_SIZE, THREAD_SIZE); in setup_lowcore_dat_off() 467 __func__, THREAD_SIZE, THREAD_SIZE); in setup_lowcore_dat_off() 489 mcck_stack = (unsigned long)memblock_alloc(THREAD_SIZE, THREAD_SIZE); in setup_lowcore_dat_off() 492 __func__, THREAD_SIZE, THREAD_SIZE); in setup_lowcore_dat_off()
|
/linux-6.1.9/arch/sh/include/asm/ |
D | thread_info.h | 46 #define THREAD_SIZE (1 << THREAD_SHIFT) macro 47 #define STACK_WARN (THREAD_SIZE >> 3) 78 : "1" (~(THREAD_SIZE - 1)) in current_thread_info()
|
D | ptrace.h | 96 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)
|
D | kprobes.h | 19 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \ 21 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
|
/linux-6.1.9/arch/mips/include/asm/ |
D | thread_info.h | 98 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro 99 #define THREAD_MASK (THREAD_SIZE - 1UL) 101 #define STACK_WARN (THREAD_SIZE / 8)
|
D | ptrace.h | 98 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-6.1.9/arch/x86/include/asm/ |
D | page_32_types.h | 23 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) macro 25 #define IRQ_STACK_SIZE THREAD_SIZE
|
/linux-6.1.9/arch/nios2/include/asm/ |
D | thread_info.h | 25 #define THREAD_SIZE 8192 /* 2 * PAGE_SIZE */ macro 62 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
|
/linux-6.1.9/arch/alpha/kernel/ |
D | vmlinux.lds.S | 47 . = ALIGN(THREAD_SIZE); 53 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
|
/linux-6.1.9/arch/s390/include/asm/ |
D | kprobes.h | 47 (((unsigned long)task_stack_page(current)) + THREAD_SIZE - (ADDR))) \ 49 : (((unsigned long)task_stack_page(current)) + THREAD_SIZE - (ADDR)))
|
/linux-6.1.9/arch/um/include/asm/ |
D | thread_info.h | 10 #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE) macro 43 unsigned long mask = THREAD_SIZE - 1; in current_thread_info()
|