process.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) process.c (c91e02bd9702f2c00c6a6dc82dec1b2d5bb9f039)
1/*
2 * arch/xtensa/kernel/process.c
3 *
4 * Xtensa Processor version.
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.

--- 10 unchanged lines hidden (view full) ---

19#include <linux/sched.h>
20#include <linux/kernel.h>
21#include <linux/mm.h>
22#include <linux/smp.h>
23#include <linux/stddef.h>
24#include <linux/unistd.h>
25#include <linux/ptrace.h>
26#include <linux/elf.h>
1/*
2 * arch/xtensa/kernel/process.c
3 *
4 * Xtensa Processor version.
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.

--- 10 unchanged lines hidden (view full) ---

19#include <linux/sched.h>
20#include <linux/kernel.h>
21#include <linux/mm.h>
22#include <linux/smp.h>
23#include <linux/stddef.h>
24#include <linux/unistd.h>
25#include <linux/ptrace.h>
26#include <linux/elf.h>
27#include <linux/hw_breakpoint.h>
27#include <linux/init.h>
28#include <linux/prctl.h>
29#include <linux/init_task.h>
30#include <linux/module.h>
31#include <linux/mqueue.h>
32#include <linux/fs.h>
33#include <linux/slab.h>
34#include <linux/rcupdate.h>
35
36#include <asm/pgtable.h>
37#include <asm/uaccess.h>
38#include <asm/io.h>
39#include <asm/processor.h>
40#include <asm/platform.h>
41#include <asm/mmu.h>
42#include <asm/irq.h>
43#include <linux/atomic.h>
44#include <asm/asm-offsets.h>
45#include <asm/regs.h>
28#include <linux/init.h>
29#include <linux/prctl.h>
30#include <linux/init_task.h>
31#include <linux/module.h>
32#include <linux/mqueue.h>
33#include <linux/fs.h>
34#include <linux/slab.h>
35#include <linux/rcupdate.h>
36
37#include <asm/pgtable.h>
38#include <asm/uaccess.h>
39#include <asm/io.h>
40#include <asm/processor.h>
41#include <asm/platform.h>
42#include <asm/mmu.h>
43#include <asm/irq.h>
44#include <linux/atomic.h>
45#include <asm/asm-offsets.h>
46#include <asm/regs.h>
47#include <asm/hw_breakpoint.h>
46
47extern void ret_from_fork(void);
48extern void ret_from_kernel_thread(void);
49
50struct task_struct *current_set[NR_CPUS] = {&init_task, };
51
52void (*pm_power_off)(void) = NULL;
53EXPORT_SYMBOL(pm_power_off);

--- 72 unchanged lines hidden (view full) ---

126 */
127void flush_thread(void)
128{
129#if XTENSA_HAVE_COPROCESSORS
130 struct thread_info *ti = current_thread_info();
131 coprocessor_flush_all(ti);
132 coprocessor_release_all(ti);
133#endif
48
49extern void ret_from_fork(void);
50extern void ret_from_kernel_thread(void);
51
52struct task_struct *current_set[NR_CPUS] = {&init_task, };
53
54void (*pm_power_off)(void) = NULL;
55EXPORT_SYMBOL(pm_power_off);

--- 72 unchanged lines hidden (view full) ---

128 */
129void flush_thread(void)
130{
131#if XTENSA_HAVE_COPROCESSORS
132 struct thread_info *ti = current_thread_info();
133 coprocessor_flush_all(ti);
134 coprocessor_release_all(ti);
135#endif
136 flush_ptrace_hw_breakpoint(current);
134}
135
136/*
137 * this gets called so that we can store coprocessor state into memory and
138 * copy the current task into the new thread.
139 */
140int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
141{

--- 126 unchanged lines hidden (view full) ---

268 */
269 }
270
271#if (XTENSA_HAVE_COPROCESSORS || XTENSA_HAVE_IO_PORTS)
272 ti = task_thread_info(p);
273 ti->cpenable = 0;
274#endif
275
137}
138
139/*
140 * this gets called so that we can store coprocessor state into memory and
141 * copy the current task into the new thread.
142 */
143int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
144{

--- 126 unchanged lines hidden (view full) ---

271 */
272 }
273
274#if (XTENSA_HAVE_COPROCESSORS || XTENSA_HAVE_IO_PORTS)
275 ti = task_thread_info(p);
276 ti->cpenable = 0;
277#endif
278
279 clear_ptrace_hw_breakpoint(p);
280
276 return 0;
277}
278
279
280/*
281 * These bracket the sleeping functions..
282 */
283

--- 73 unchanged lines hidden ---
281 return 0;
282}
283
284
285/*
286 * These bracket the sleeping functions..
287 */
288

--- 73 unchanged lines hidden ---