Lines Matching +full:reboot +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2005-2017 Andes Technology Corporation
11 #include <asm/proc-fns.h>
14 #include <linux/reboot.h>
20 extern void setup_mm_for_reboot(char mode);
22 extern inline void arch_reset(char mode) in arch_reset() argument
24 if (mode == 's') { in arch_reset()
46 __setup("reboot=", reboot_setup);
71 * Tell the mm system that we are going to reboot - in machine_restart()
81 * Now call the architecture specific reboot code. in machine_restart()
86 * Whoops - the architecture was unable to reboot. in machine_restart()
90 pr_info("Reboot failed -- System halted\n"); in machine_restart()
99 printk("LP is at %pS\n", (void *)regs->lp); in show_regs()
103 regs->lp, print_tainted(), regs->sp, regs->fp, regs->gp); in show_regs()
104 pr_info("r25: %08lx r24: %08lx\n", regs->uregs[25], regs->uregs[24]); in show_regs()
107 regs->uregs[23], regs->uregs[22], in show_regs()
108 regs->uregs[21], regs->uregs[20]); in show_regs()
110 regs->uregs[19], regs->uregs[18], in show_regs()
111 regs->uregs[17], regs->uregs[16]); in show_regs()
113 regs->uregs[15], regs->uregs[14], in show_regs()
114 regs->uregs[13], regs->uregs[12]); in show_regs()
116 regs->uregs[11], regs->uregs[10], in show_regs()
117 regs->uregs[9], regs->uregs[8]); in show_regs()
119 regs->uregs[7], regs->uregs[6], regs->uregs[5], regs->uregs[4]); in show_regs()
121 regs->uregs[3], regs->uregs[2], regs->uregs[1], regs->uregs[0]); in show_regs()
157 memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
159 if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) { in copy_thread()
162 p->thread.cpu_context.r6 = stack_start; in copy_thread()
164 p->thread.cpu_context.r7 = stk_sz; in copy_thread()
168 childregs->sp = stack_start; in copy_thread()
170 childregs->uregs[0] = 0; in copy_thread()
171 childregs->osp = 0; in copy_thread()
173 childregs->uregs[25] = tls; in copy_thread()
176 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
177 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
189 p->thread.fpu = current->thread.fpu; in copy_thread()
196 childregs->lb = 0; in copy_thread()
197 childregs->le = 0; in copy_thread()
198 childregs->lc = 0; in copy_thread()
210 if (!(next->flags & PF_KTHREAD)) in _switch_fpu()
228 memcpy(fpu, &tsk->thread.fpu, sizeof(*fpu)); in dump_fpu()