/arch/um/os-Linux/skas/ |
D | mem.c | 26 unsigned long *stack) in check_init_stack() argument 28 if (stack == NULL) { in check_init_stack() 29 stack = (unsigned long *) mm_idp->stack + 2; in check_init_stack() 30 *stack = 0; in check_init_stack() 32 return stack; in check_init_stack() 78 ret = *((unsigned long *) mm_idp->stack); in do_syscall_stub() 79 offset = *((unsigned long *) mm_idp->stack + 1); in do_syscall_stub() 81 data = (unsigned long *)(mm_idp->stack + offset - STUB_DATA); in do_syscall_stub() 114 unsigned long *stack = check_init_stack(mm_idp, *addr); in run_syscall_stub() local 116 *stack += sizeof(long); in run_syscall_stub() [all …]
|
D | process.c | 192 static int userspace_tramp(void *stack) in userspace_tramp() argument 216 if (stack != NULL) { in userspace_tramp() 217 fd = phys_mapping(to_phys(stack), &offset); in userspace_tramp() 228 if (stack != NULL) { in userspace_tramp() 266 void *stack; in start_userspace() local 271 stack = mmap(NULL, UM_KERN_PAGE_SIZE, in start_userspace() 274 if (stack == MAP_FAILED) { in start_userspace() 282 sp = (unsigned long) stack + UM_KERN_PAGE_SIZE - sizeof(void *); in start_userspace() 320 if (munmap(stack, UM_KERN_PAGE_SIZE) < 0) { in start_userspace() 551 void new_thread(void *stack, jmp_buf *buf, void (*handler)(void)) in new_thread() argument [all …]
|
/arch/csky/kernel/ |
D | dumpstack.c | 8 void show_trace(unsigned long *stack) in show_trace() argument 15 addr = (unsigned long) stack & THREAD_MASK; in show_trace() 19 fp = stack; in show_trace() 35 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument 37 if (!stack) { in show_stack() 39 stack = (unsigned long *)thread_saved_fp(task); in show_stack() 42 asm volatile("mov %0, r8\n":"=r"(stack)::"memory"); in show_stack() 44 stack = (unsigned long *)&stack; in show_stack() 48 show_trace(stack); in show_stack()
|
/arch/x86/kernel/ |
D | dumpstack_32.c | 35 static bool in_hardirq_stack(unsigned long *stack, struct stack_info *info) in in_hardirq_stack() argument 44 if (stack < begin || stack > end) in in_hardirq_stack() 60 static bool in_softirq_stack(unsigned long *stack, struct stack_info *info) in in_softirq_stack() argument 69 if (stack < begin || stack > end) in in_softirq_stack() 85 int get_stack_info(unsigned long *stack, struct task_struct *task, in get_stack_info() argument 88 if (!stack) in get_stack_info() 93 if (in_task_stack(stack, task, info)) in get_stack_info() 99 if (in_entry_stack(stack, info)) in get_stack_info() 102 if (in_hardirq_stack(stack, info)) in get_stack_info() 105 if (in_softirq_stack(stack, info)) in get_stack_info()
|
D | dumpstack.c | 32 bool in_task_stack(unsigned long *stack, struct task_struct *task, in in_task_stack() argument 38 if (stack < begin || stack >= end) in in_task_stack() 49 bool in_entry_stack(unsigned long *stack, struct stack_info *info) in in_entry_stack() argument 56 if ((void *)stack < begin || (void *)stack >= end) in in_entry_stack() 163 unsigned long *stack, char *log_lvl) in show_trace_log_lvl() argument 173 unwind_start(&state, task, regs, stack); in show_trace_log_lvl() 174 stack = stack ? : get_stack_pointer(task, regs); in show_trace_log_lvl() 193 for ( ; stack; stack = PTR_ALIGN(stack_info.next_sp, sizeof(long))) { in show_trace_log_lvl() 196 if (get_stack_info(stack, task, &stack_info, &visit_mask)) { in show_trace_log_lvl() 203 stack = (unsigned long *)PAGE_ALIGN((unsigned long)stack); in show_trace_log_lvl() [all …]
|
D | dumpstack_64.c | 87 static bool in_exception_stack(unsigned long *stack, struct stack_info *info) in in_exception_stack() argument 89 unsigned long begin, end, stk = (unsigned long)stack; in in_exception_stack() 128 static bool in_irq_stack(unsigned long *stack, struct stack_info *info) in in_irq_stack() argument 137 if (stack < begin || stack >= end) in in_irq_stack() 153 int get_stack_info(unsigned long *stack, struct task_struct *task, in get_stack_info() argument 156 if (!stack) in get_stack_info() 161 if (in_task_stack(stack, task, info)) in get_stack_info() 167 if (in_exception_stack(stack, info)) in get_stack_info() 170 if (in_irq_stack(stack, info)) in get_stack_info() 173 if (in_entry_stack(stack, info)) in get_stack_info()
|
/arch/openrisc/kernel/ |
D | unwinder.c | 60 void unwind_stack(void *data, unsigned long *stack, in unwind_stack() argument 67 while (!kstack_end(stack)) { in unwind_stack() 68 frameinfo = container_of(stack, in unwind_stack() 83 stack++; in unwind_stack() 93 void unwind_stack(void *data, unsigned long *stack, in unwind_stack() argument 98 while (!kstack_end(stack)) { in unwind_stack() 99 addr = *stack++; in unwind_stack()
|
/arch/um/kernel/ |
D | sysrq.c | 28 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument 30 unsigned long *sp = stack; in show_stack() 40 if (!stack) in show_stack() 44 stack = sp; in show_stack() 46 if (kstack_end(stack)) in show_stack() 50 pr_cont(" %08lx", *stack++); in show_stack()
|
/arch/nios2/kernel/ |
D | traps.c | 60 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument 65 if (!stack) { in show_stack() 67 stack = (unsigned long *)task->thread.ksp; in show_stack() 69 stack = (unsigned long *)&stack; in show_stack() 72 addr = (unsigned long) stack; in show_stack() 75 pr_emerg("Stack from %08lx:", (unsigned long)stack); in show_stack() 77 if (stack + 1 > endstack) in show_stack() 81 pr_emerg(" %08lx", *stack++); in show_stack() 86 while (stack + 1 <= endstack) { in show_stack() 87 addr = *stack++; in show_stack()
|
/arch/um/kernel/skas/ |
D | mmu.c | 55 unsigned long stack = 0; in init_new_context() local 58 stack = get_zeroed_page(GFP_KERNEL); in init_new_context() 59 if (stack == 0) in init_new_context() 62 to_mm->id.stack = stack; in init_new_context() 68 to_mm->id.u.pid = copy_context_skas0(stack, in init_new_context() 70 else to_mm->id.u.pid = start_userspace(stack); in init_new_context() 88 if (to_mm->id.stack != 0) in init_new_context() 89 free_page(to_mm->id.stack); in init_new_context() 103 ret = init_stub_pte(mm, STUB_DATA, mm->context.id.stack); in uml_setup_stubs() 108 mm->context.stub_pages[1] = virt_to_page(mm->context.id.stack); in uml_setup_stubs() [all …]
|
/arch/um/os-Linux/ |
D | helper.c | 45 unsigned long stack, sp; in run_helper() local 48 stack = alloc_stack(0, __cant_sleep()); in run_helper() 49 if (stack == 0) in run_helper() 67 sp = stack + UM_KERN_PAGE_SIZE - sizeof(void *); in run_helper() 109 free_stack(stack, 0); in run_helper() 116 unsigned long stack, sp; in run_helper_thread() local 119 stack = alloc_stack(0, __cant_sleep()); in run_helper_thread() 120 if (stack == 0) in run_helper_thread() 123 sp = stack + UM_KERN_PAGE_SIZE - sizeof(void *); in run_helper_thread() 142 free_stack(stack, 0); in run_helper_thread() [all …]
|
/arch/h8300/kernel/ |
D | traps.c | 120 unsigned long *stack, addr; in show_stack() local 126 stack = esp; in show_stack() 128 pr_info("Stack from %08lx:", (unsigned long)stack); in show_stack() 130 if (((unsigned long)stack & (THREAD_SIZE - 1)) >= in show_stack() 135 pr_cont(" %08lx", *stack++); in show_stack() 140 stack = esp; in show_stack() 141 while (((unsigned long)stack & (THREAD_SIZE - 1)) < THREAD_SIZE-4) { in show_stack() 142 addr = *stack++; in show_stack()
|
/arch/powerpc/include/asm/ |
D | xics.h | 102 unsigned char stack[MAX_NUM_PRIORITIES]; member 116 os_cppr->stack[++os_cppr->index] = IPI_PRIORITY; in xics_push_cppr() 118 os_cppr->stack[++os_cppr->index] = DEFAULT_PRIORITY; in xics_push_cppr() 128 return os_cppr->stack[--os_cppr->index]; in xics_pop_cppr() 140 os_cppr->stack[0] = cppr; in xics_set_base_cppr() 147 return os_cppr->stack[os_cppr->index]; in xics_cppr_top()
|
/arch/powerpc/kernel/ |
D | stacktrace.c | 33 unsigned long *stack = (unsigned long *) sp; in save_context_stack() local 39 newsp = stack[0]; in save_context_stack() 40 ip = stack[STACK_FRAME_LR_SAVE]; in save_context_stack() 145 unsigned long *stack = (unsigned long *) sp; in __save_stack_trace_tsk_reliable() local 152 newsp = stack[0]; in __save_stack_trace_tsk_reliable() 172 stack[STACK_FRAME_MARKER] == STACK_FRAME_REGS_MARKER) { in __save_stack_trace_tsk_reliable() 177 ip = stack[STACK_FRAME_LR_SAVE]; in __save_stack_trace_tsk_reliable() 185 ip = ftrace_graph_ret_addr(tsk, &graph_idx, ip, stack); in __save_stack_trace_tsk_reliable()
|
/arch/unicore32/include/asm/ |
D | processor.h | 46 unsigned long *stack = (unsigned long *)sp; \ 51 regs->UCreg_02 = stack[2]; /* r2 (envp) */ \ 52 regs->UCreg_01 = stack[1]; /* r1 (argv) */ \ 53 regs->UCreg_00 = stack[0]; /* r0 (argc) */ \
|
/arch/unicore32/kernel/ |
D | sleep.S | 26 @ store them plus current virtual stack ptr on stack 33 @ preserve phys address of stack 50 stm.w (r16 - r27, lr), [sp-] @ save registers on stack 51 stm.w (r4 - r15), [sp-] @ save registers on stack 162 ldw r0, sleep_save_sp @ stack phys addr 164 ldm (r3 - r6), [r0]+ @ CP regs + virt stack ptr 165 mov sp, r6 @ CP regs + virt stack ptr 183 .word 0 @ preserve stack phys ptr here 198 ldm.w (r4 - r15), [sp]+ @ restore registers from stack
|
D | setup.c | 44 struct stack { struct 50 static struct stack stacks[NR_CPUS]; argument 105 struct stack *stk = &stacks[cpu]; in cpu_init() 121 "I" (offsetof(struct stack, irq[0])), in cpu_init() 123 "I" (offsetof(struct stack, abt[0])), in cpu_init() 125 "I" (offsetof(struct stack, und[0])), in cpu_init()
|
/arch/x86/include/asm/ |
D | stacktrace.h | 31 bool in_task_stack(unsigned long *stack, struct task_struct *task, 34 bool in_entry_stack(unsigned long *stack, struct stack_info *info); 36 int get_stack_info(unsigned long *stack, struct task_struct *task, 90 unsigned long *stack, char *log_lvl);
|
/arch/x86/purgatory/ |
D | stack.S | 13 .globl stack, stack_end symbol 15 stack: label
|
/arch/c6x/kernel/ |
D | traps.c | 347 static void show_trace(unsigned long *stack, unsigned long *endstack) in show_trace() argument 354 while (stack + 1 <= endstack) { in show_trace() 355 addr = *stack++; in show_trace() 376 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument 381 if (!stack) { in show_stack() 385 stack = (unsigned long *)thread_saved_ksp(task); in show_stack() 387 stack = (unsigned long *)&stack; in show_stack() 389 endstack = (unsigned long *)(((unsigned long)stack + THREAD_SIZE - 1) in show_stack() 392 pr_debug("Stack from %08lx:", (unsigned long)stack); in show_stack() 393 for (i = 0, p = stack; i < kstack_depth_to_print; i++) { in show_stack() [all …]
|
/arch/sh/include/asm/ |
D | stacktrace.h | 16 int (*stack)(void *data, char *name); member 20 unsigned long *stack,
|
/arch/m68k/ifpsp060/ |
D | ilsp.doc | 86 subq.l &0x8,%sp # make room for result on stack 87 pea (%sp) # pass: result addr on stack 88 mov.l %d0,-(%sp) # pass: multiplicand on stack 89 mov.l _multiplier,-(%sp) # pass: multiplier on stack 91 add.l &0xc,%sp # clear arguments from stack 100 subq.l &0x8,%sp # make room for result on stack 101 pea (%sp) # pass: result addr on stack 102 mov.l %d0,-(%sp) # pass: dividend hi on stack 103 mov.l %d1,-(%sp) # pass: dividend hi on stack 104 mov.l _divisor,-(%sp) # pass: divisor on stack [all …]
|
/arch/sh/kernel/ |
D | dumpstack.c | 125 .stack = print_trace_stack, 149 unsigned long stack; in show_stack() local 158 stack = (unsigned long)sp; in show_stack() 159 dump_mem("Stack: ", stack, THREAD_SIZE + in show_stack()
|
/arch/s390/kernel/ |
D | dumpstack.c | 57 unsigned long stack; in in_task_stack() local 59 stack = (unsigned long) task_stack_page(task); in in_task_stack() 60 return in_stack(sp, info, STACK_TYPE_TASK, stack, stack + THREAD_SIZE); in in_task_stack() 126 void show_stack(struct task_struct *task, unsigned long *stack) in show_stack() argument 133 unwind_for_each_frame(&state, task, NULL, (unsigned long) stack) in show_stack()
|
/arch/unicore32/lib/ |
D | backtrace.S | 13 @ fp is 0 or stack frame 33 beq no_frame @ we have no stack frames 114 #define stack v6 macro 116 .Ldumpstm: stm.w (instr, reg, stack, v7, lr), [sp-] 117 mov stack, r0 133 ldw.w r3, [stack]+, #-4 151 201: ldm.w (instr, reg, stack, v7, pc), [sp]+
|