Lines Matching +full:halt +full:- +full:regs

2  * Architecture-dependent parts of process handling.
56 pr_notice("Machine halt...\n"); in machine_halt()
74 void show_regs(struct pt_regs *regs) in show_regs() argument
80 regs->r1, regs->r2, regs->r3, regs->r4); in show_regs()
83 regs->r5, regs->r6, regs->r7, regs->r8); in show_regs()
86 regs->r9, regs->r10, regs->r11, regs->r12); in show_regs()
89 regs->r13, regs->r14, regs->r15); in show_regs()
92 regs->ra, regs->fp, regs->sp, regs->gp); in show_regs()
95 regs->ea, regs->estatus); in show_regs()
104 u64 clone_flags = args->flags; in copy_thread()
105 unsigned long usp = args->stack; in copy_thread()
106 unsigned long tls = args->tls; in copy_thread()
108 struct pt_regs *regs; in copy_thread() local
111 ((struct switch_stack *)childregs) - 1; in copy_thread()
113 if (unlikely(args->fn)) { in copy_thread()
117 childstack->r16 = (unsigned long) args->fn; in copy_thread()
118 childstack->r17 = (unsigned long) args->fn_arg; in copy_thread()
119 childstack->ra = (unsigned long) ret_from_kernel_thread; in copy_thread()
120 childregs->estatus = STATUS_PIE; in copy_thread()
121 childregs->sp = (unsigned long) childstack; in copy_thread()
123 p->thread.ksp = (unsigned long) childstack; in copy_thread()
124 p->thread.kregs = childregs; in copy_thread()
128 regs = current_pt_regs(); in copy_thread()
129 *childregs = *regs; in copy_thread()
130 childregs->r2 = 0; /* Set the return value for the child. */ in copy_thread()
131 childregs->r7 = 0; in copy_thread()
133 stack = ((struct switch_stack *) regs) - 1; in copy_thread()
135 childstack->ra = (unsigned long)ret_from_fork; in copy_thread()
136 p->thread.kregs = childregs; in copy_thread()
137 p->thread.ksp = (unsigned long) childstack; in copy_thread()
140 childregs->sp = usp; in copy_thread()
144 childstack->r23 = tls; in copy_thread()
159 pr_emerg("COMM=%s PID=%d\n", current->comm, current->pid); in dump()
161 if (current->mm) { in dump()
162 pr_emerg("TEXT=%08x-%08x DATA=%08x-%08x BSS=%08x-%08x\n", in dump()
163 (int) current->mm->start_code, in dump()
164 (int) current->mm->end_code, in dump()
165 (int) current->mm->start_data, in dump()
166 (int) current->mm->end_data, in dump()
167 (int) current->mm->end_data, in dump()
168 (int) current->mm->brk); in dump()
169 pr_emerg("USER-STACK=%08x KERNEL-STACK=%08x\n\n", in dump()
170 (int) current->mm->start_stack, in dump()
174 pr_emerg("PC: %08lx\n", fp->ea); in dump()
176 (long) fp->estatus, (long) fp); in dump()
179 fp->r1, fp->r2, fp->r3); in dump()
182 fp->r4, fp->r5, fp->r6, fp->r7); in dump()
184 fp->r8, fp->r9, fp->r10, fp->r11); in dump()
186 fp->r12, fp->r13, fp->r14, fp->r15); in dump()
188 fp->orig_r2, fp->ra, fp->fp, fp->sp); in dump()
190 (unsigned int) fp->sp, (unsigned int) fp); in dump()
193 tp = ((unsigned char *) fp->ea) - 0x20; in dump()
202 tp = ((unsigned char *) fp) - 0x40; in dump()
212 tp = (unsigned char *) (fp->sp - 0x10); in dump()
228 fp = ((struct switch_stack *)p->thread.ksp)->fp; /* ;dgt2 */ in __get_wchan()
245 void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) in start_thread() argument
247 memset((void *) regs, 0, sizeof(struct pt_regs)); in start_thread()
248 regs->estatus = ESTATUS_EPIE | ESTATUS_EU; in start_thread()
249 regs->ea = pc; in start_thread()
250 regs->sp = sp; in start_thread()