1 // SPDX-License-Identifier: GPL-2.0
3 * linux/arch/cris/kernel/process.c
5 * Copyright (C) 1995 Linus Torvalds
6 * Copyright (C) 2000-2002 Axis Communications AB
8 * Authors: Bjorn Wesen (bjornw@axis.com)
13 * This file handles the architecture-dependent parts of process handling..
16 #include <linux/atomic.h>
17 #include <asm/pgtable.h>
18 #include <linux/uaccess.h>
20 #include <linux/module.h>
21 #include <linux/spinlock.h>
22 #include <linux/init_task.h>
23 #include <linux/sched.h>
24 #include <linux/sched/task.h>
26 #include <linux/user.h>
27 #include <linux/elfcore.h>
28 #include <linux/mqueue.h>
29 #include <linux/reboot.h>
30 #include <linux/rcupdate.h>
34 extern void default_idle(void);
36 void (*pm_power_off
)(void);
37 EXPORT_SYMBOL(pm_power_off
);
39 void arch_cpu_idle(void)
44 void hard_reset_now (void);
46 void machine_restart(char *cmd
)
52 * Similar to machine_power_off, but don't shut off power. Add code
53 * here to freeze the system for e.g. post-mortem debug purpose when
54 * possible. This halt has nothing to do with the idle halt.
57 void machine_halt(void)
61 /* If or when software power-off is implemented, add code here. */
63 void machine_power_off(void)
68 * When a process does an "exec", machine state like FPU and debug
69 * registers need to be reset. This is a hook function for that.
70 * Currently we don't have any such state to reset, so this is empty.
73 void flush_thread(void)
77 /* Fill in the fpu structure for a core dump. */
78 int dump_fpu(struct pt_regs
*regs
, elf_fpregset_t
*fpu
)