]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | // SPDX-License-Identifier: GPL-2.0 |
f32bb79c | 2 | /* |
1da177e4 LT |
3 | * linux/arch/cris/kernel/process.c |
4 | * | |
5 | * Copyright (C) 1995 Linus Torvalds | |
6 | * Copyright (C) 2000-2002 Axis Communications AB | |
7 | * | |
8 | * Authors: Bjorn Wesen (bjornw@axis.com) | |
9 | * | |
1da177e4 LT |
10 | */ |
11 | ||
12 | /* | |
13 | * This file handles the architecture-dependent parts of process handling.. | |
14 | */ | |
15 | ||
60063497 | 16 | #include <linux/atomic.h> |
1da177e4 | 17 | #include <asm/pgtable.h> |
7c0f6ba6 | 18 | #include <linux/uaccess.h> |
1da177e4 LT |
19 | #include <asm/irq.h> |
20 | #include <linux/module.h> | |
21 | #include <linux/spinlock.h> | |
1da177e4 LT |
22 | #include <linux/init_task.h> |
23 | #include <linux/sched.h> | |
29930025 | 24 | #include <linux/sched/task.h> |
1da177e4 LT |
25 | #include <linux/fs.h> |
26 | #include <linux/user.h> | |
27 | #include <linux/elfcore.h> | |
28 | #include <linux/mqueue.h> | |
16dcb4bb | 29 | #include <linux/reboot.h> |
c633f9e7 | 30 | #include <linux/rcupdate.h> |
1da177e4 LT |
31 | |
32 | //#define DEBUG | |
33 | ||
7b275523 JN |
34 | extern void default_idle(void); |
35 | ||
36 | void (*pm_power_off)(void); | |
37 | EXPORT_SYMBOL(pm_power_off); | |
38 | ||
8dc7c5ec | 39 | void arch_cpu_idle(void) |
1da177e4 | 40 | { |
8dc7c5ec | 41 | default_idle(); |
1da177e4 LT |
42 | } |
43 | ||
44 | void hard_reset_now (void); | |
45 | ||
16dcb4bb | 46 | void machine_restart(char *cmd) |
1da177e4 LT |
47 | { |
48 | hard_reset_now(); | |
49 | } | |
50 | ||
1da177e4 LT |
51 | /* |
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. | |
55 | */ | |
56 | ||
57 | void machine_halt(void) | |
58 | { | |
59 | } | |
60 | ||
1da177e4 LT |
61 | /* If or when software power-off is implemented, add code here. */ |
62 | ||
63 | void machine_power_off(void) | |
64 | { | |
65 | } | |
66 | ||
1da177e4 LT |
67 | /* |
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. | |
71 | */ | |
72 | ||
73 | void flush_thread(void) | |
74 | { | |
75 | } | |
76 | ||
1da177e4 LT |
77 | /* Fill in the fpu structure for a core dump. */ |
78 | int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) | |
79 | { | |
80 | return 0; | |
81 | } |