diff options
| author | Dave Kleikamp <shaggy@austin.ibm.com> | 2006-01-24 15:34:47 -0500 |
|---|---|---|
| committer | Dave Kleikamp <shaggy@austin.ibm.com> | 2006-01-24 15:34:47 -0500 |
| commit | 0a0fc0ddbe732779366ab6b1b879f62195e65967 (patch) | |
| tree | 7b42490a676cf39ae0691b6859ecf7fd410f229b /arch/m32r/kernel/process.c | |
| parent | 4d5dbd0945d9e0833dd7964a3d6ee33157f7cc7a (diff) | |
| parent | 3ee68c4af3fd7228c1be63254b9f884614f9ebb2 (diff) | |
Merge with /home/shaggy/git/linus-clean/
Diffstat (limited to 'arch/m32r/kernel/process.c')
| -rw-r--r-- | arch/m32r/kernel/process.c | 17 |
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 | */ |
| 52 | void (*pm_idle)(void) = NULL; | 52 | void (*pm_idle)(void) = NULL; |
| 53 | EXPORT_SYMBOL(pm_idle); | ||
| 54 | |||
| 55 | void (*pm_power_off)(void) = NULL; | ||
| 56 | EXPORT_SYMBOL(pm_power_off); | ||
| 53 | 57 | ||
| 54 | void disable_hlt(void) | 58 | void disable_hlt(void) |
| 55 | { | 59 | { |
| @@ -238,13 +242,10 @@ int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) | |||
| 238 | int copy_thread(int nr, unsigned long clone_flags, unsigned long spu, | 242 | int 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 | */ | ||
| 262 | void 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 | */ |
| 270 | int dump_task_regs(struct task_struct *tsk, elf_gregset_t *regs) | 263 | int dump_task_regs(struct task_struct *tsk, elf_gregset_t *regs) |
