2 * linux/arch/cris/kernel/process.c
4 * Copyright (C) 1995 Linus Torvalds
5 * Copyright (C) 2000-2002 Axis Communications AB
7 * Authors: Bjorn Wesen (bjornw@axis.com)
12 * This file handles the architecture-dependent parts of process handling..
15 #include <linux/atomic.h>
16 #include <asm/pgtable.h>
17 #include <linux/uaccess.h>
19 #include <linux/module.h>
20 #include <linux/spinlock.h>
21 #include <linux/init_task.h>
22 #include <linux/sched.h>
23 #include <linux/sched/task.h>
25 #include <linux/user.h>
26 #include <linux/elfcore.h>
27 #include <linux/mqueue.h>
28 #include <linux/reboot.h>
29 #include <linux/rcupdate.h>
33 extern void default_idle(void);
35 void (*pm_power_off
)(void);
36 EXPORT_SYMBOL(pm_power_off
);
38 void arch_cpu_idle(void)
43 void hard_reset_now (void);
45 void machine_restart(char *cmd
)
51 * Similar to machine_power_off, but don't shut off power. Add code
52 * here to freeze the system for e.g. post-mortem debug purpose when
53 * possible. This halt has nothing to do with the idle halt.
56 void machine_halt(void)
60 /* If or when software power-off is implemented, add code here. */
62 void machine_power_off(void)
67 * When a process does an "exec", machine state like FPU and debug
68 * registers need to be reset. This is a hook function for that.
69 * Currently we don't have any such state to reset, so this is empty.
72 void flush_thread(void)
76 /* Fill in the fpu structure for a core dump. */
77 int dump_fpu(struct pt_regs
*regs
, elf_fpregset_t
*fpu
)