aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r/kernel/process.c
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2006-01-19 11:39:33 -0500
committerAnton Altaparmakov <aia21@cantab.net>2006-01-19 11:39:33 -0500
commit944d79559d154c12becde0dab327016cf438f46c (patch)
tree50c101806f4d3b6585222dda060559eb4f3e005a /arch/m32r/kernel/process.c
parentd087e4bdd24ebe3ae3d0b265b6573ec901af4b4b (diff)
parent0f36b018b2e314d45af86449f1a97facb1fbe300 (diff)
Merge branch 'master' of /usr/src/ntfs-2.6/
Diffstat (limited to 'arch/m32r/kernel/process.c')
-rw-r--r--arch/m32r/kernel/process.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/arch/m32r/kernel/process.c b/arch/m32r/kernel/process.c
index cc4b571e5db7..5dfc7ea45cf7 100644
--- a/arch/m32r/kernel/process.c
+++ b/arch/m32r/kernel/process.c
@@ -50,6 +50,10 @@ unsigned long thread_saved_pc(struct task_struct *tsk)
50 * Powermanagement idle function, if any.. 50 * Powermanagement idle function, if any..
51 */ 51 */
52void (*pm_idle)(void) = NULL; 52void (*pm_idle)(void) = NULL;
53EXPORT_SYMBOL(pm_idle);
54
55void (*pm_power_off)(void) = NULL;
56EXPORT_SYMBOL(pm_power_off);
53 57
54void disable_hlt(void) 58void disable_hlt(void)
55{ 59{
@@ -238,13 +242,10 @@ int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
238int copy_thread(int nr, unsigned long clone_flags, unsigned long spu, 242int copy_thread(int nr, unsigned long clone_flags, unsigned long spu,
239 unsigned long unused, struct task_struct *tsk, struct pt_regs *regs) 243 unsigned long unused, struct task_struct *tsk, struct pt_regs *regs)
240{ 244{
241 struct pt_regs *childregs; 245 struct pt_regs *childregs = task_pt_regs(tsk);
242 unsigned long sp = (unsigned long)tsk->thread_info + THREAD_SIZE;
243 extern void ret_from_fork(void); 246 extern void ret_from_fork(void);
244 247
245 /* Copy registers */ 248 /* Copy registers */
246 sp -= sizeof (struct pt_regs);
247 childregs = (struct pt_regs *)sp;
248 *childregs = *regs; 249 *childregs = *regs;
249 250
250 childregs->spu = spu; 251 childregs->spu = spu;
@@ -257,14 +258,6 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long spu,
257} 258}
258 259
259/* 260/*
260 * fill in the user structure for a core dump..
261 */
262void dump_thread(struct pt_regs * regs, struct user * dump)
263{
264 /* M32R_FIXME */
265}
266
267/*
268 * Capture the user space registers if the task is not running (in user space) 261 * Capture the user space registers if the task is not running (in user space)
269 */ 262 */
270int dump_task_regs(struct task_struct *tsk, elf_gregset_t *regs) 263int dump_task_regs(struct task_struct *tsk, elf_gregset_t *regs)