process.c (5168ce2c647f02756803bef7b74906f485491a1c) process.c (f5daba1d4116d964435ddd99f32b6c80448a496b)
1/*
2 * This file handles the architecture dependent parts of process handling.
3 *
4 * Copyright IBM Corp. 1999,2009
5 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>,
6 * Hartmut Penner <hp@de.ibm.com>,
7 * Denis Joseph Barrow,
8 */

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

34#include <linux/syscalls.h>
35#include <asm/uaccess.h>
36#include <asm/pgtable.h>
37#include <asm/system.h>
38#include <asm/io.h>
39#include <asm/processor.h>
40#include <asm/irq.h>
41#include <asm/timer.h>
1/*
2 * This file handles the architecture dependent parts of process handling.
3 *
4 * Copyright IBM Corp. 1999,2009
5 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>,
6 * Hartmut Penner <hp@de.ibm.com>,
7 * Denis Joseph Barrow,
8 */

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

34#include <linux/syscalls.h>
35#include <asm/uaccess.h>
36#include <asm/pgtable.h>
37#include <asm/system.h>
38#include <asm/io.h>
39#include <asm/processor.h>
40#include <asm/irq.h>
41#include <asm/timer.h>
42#include <asm/nmi.h>
42#include "entry.h"
43
44asmlinkage void ret_from_fork(void) asm ("ret_from_fork");
45
46/*
47 * Return saved PC of a blocked thread. used in kernel/sched.
48 * resume in entry.S does not create a new stack frame, it
49 * just stores the registers %r6-%r15 to the frame given by

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

63 if (sf <= low || sf > high)
64 return 0;
65 sf = (struct stack_frame *) (sf->back_chain & PSW_ADDR_INSN);
66 if (sf <= low || sf > high)
67 return 0;
68 return sf->gprs[8];
69}
70
43#include "entry.h"
44
45asmlinkage void ret_from_fork(void) asm ("ret_from_fork");
46
47/*
48 * Return saved PC of a blocked thread. used in kernel/sched.
49 * resume in entry.S does not create a new stack frame, it
50 * just stores the registers %r6-%r15 to the frame given by

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

64 if (sf <= low || sf > high)
65 return 0;
66 sf = (struct stack_frame *) (sf->back_chain & PSW_ADDR_INSN);
67 if (sf <= low || sf > high)
68 return 0;
69 return sf->gprs[8];
70}
71
71extern void s390_handle_mcck(void);
72/*
73 * The idle loop on a S390...
74 */
75static void default_idle(void)
76{
77 /* CPU is going idle. */
78 local_irq_disable();
79 if (need_resched()) {

--- 265 unchanged lines hidden ---
72/*
73 * The idle loop on a S390...
74 */
75static void default_idle(void)
76{
77 /* CPU is going idle. */
78 local_irq_disable();
79 if (need_resched()) {

--- 265 unchanged lines hidden ---