process.c (0ad8c6a22d03a1598f7cc6585c65354dadca62ad) process.c (243412be9cecfc7fddebb912a277b76119fd4ecd)
1/*
2 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Copyright 2003 PathScale, Inc.
4 * Licensed under the GPL
5 */
6
7#include <linux/stddef.h>
8#include <linux/err.h>

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

13#include <linux/proc_fs.h>
14#include <linux/ptrace.h>
15#include <linux/random.h>
16#include <linux/slab.h>
17#include <linux/sched.h>
18#include <linux/seq_file.h>
19#include <linux/tick.h>
20#include <linux/threads.h>
1/*
2 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Copyright 2003 PathScale, Inc.
4 * Licensed under the GPL
5 */
6
7#include <linux/stddef.h>
8#include <linux/err.h>

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

13#include <linux/proc_fs.h>
14#include <linux/ptrace.h>
15#include <linux/random.h>
16#include <linux/slab.h>
17#include <linux/sched.h>
18#include <linux/seq_file.h>
19#include <linux/tick.h>
20#include <linux/threads.h>
21#include <linux/tracehook.h>
21#include <asm/current.h>
22#include <asm/pgtable.h>
23#include <asm/mmu_context.h>
24#include <asm/uaccess.h>
25#include "as-layout.h"
26#include "kern_util.h"
27#include "os.h"
28#include "skas.h"

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

109
110 return current->thread.prev_sched;
111}
112
113void interrupt_end(void)
114{
115 if (need_resched())
116 schedule();
22#include <asm/current.h>
23#include <asm/pgtable.h>
24#include <asm/mmu_context.h>
25#include <asm/uaccess.h>
26#include "as-layout.h"
27#include "kern_util.h"
28#include "os.h"
29#include "skas.h"

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

110
111 return current->thread.prev_sched;
112}
113
114void interrupt_end(void)
115{
116 if (need_resched())
117 schedule();
117 if (test_tsk_thread_flag(current, TIF_SIGPENDING))
118 if (test_thread_flag(TIF_SIGPENDING))
118 do_signal();
119 do_signal();
120 if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) {
121 tracehook_notify_resume(&current->thread.regs);
122 if (current->replacement_session_keyring)
123 key_replace_session_keyring();
124 }
119}
120
121void exit_thread(void)
122{
123}
124
125int get_current_pid(void)
126{

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

185 void (*handler)(void);
186 int ret = 0;
187
188 p->thread = (struct thread_struct) INIT_THREAD;
189
190 if (current->thread.forking) {
191 memcpy(&p->thread.regs.regs, &regs->regs,
192 sizeof(p->thread.regs.regs));
125}
126
127void exit_thread(void)
128{
129}
130
131int get_current_pid(void)
132{

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

191 void (*handler)(void);
192 int ret = 0;
193
194 p->thread = (struct thread_struct) INIT_THREAD;
195
196 if (current->thread.forking) {
197 memcpy(&p->thread.regs.regs, &regs->regs,
198 sizeof(p->thread.regs.regs));
193 REGS_SET_SYSCALL_RETURN(p->thread.regs.regs.gp, 0);
199 UPT_SET_SYSCALL_RETURN(&p->thread.regs.regs, 0);
194 if (sp != 0)
195 REGS_SP(p->thread.regs.regs.gp) = sp;
196
197 handler = fork_handler;
198
199 arch_copy_thread(&current->thread.arch, &p->thread.arch);
200 }
201 else {

--- 263 unchanged lines hidden ---
200 if (sp != 0)
201 REGS_SP(p->thread.regs.regs.gp) = sp;
202
203 handler = fork_handler;
204
205 arch_copy_thread(&current->thread.arch, &p->thread.arch);
206 }
207 else {

--- 263 unchanged lines hidden ---