diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-05 14:15:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-05 14:15:54 -0400 |
commit | 45e36c1666aa6c8b0c538abcf984b336184d8c3f (patch) | |
tree | c1f1771d6b02ec210238081450b4a063847b3383 /arch/sh/kernel/process_32.c | |
parent | 87fc94d54b639d8c39fc4a11db0e142f84096e13 (diff) | |
parent | 68b42d1b548be1840aff7122fdebeb804daf0fa3 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (23 commits)
sh: sh7785lcr: Map whole PCI address space.
sh: Fix up DSP context save/restore.
sh: Fix up number of on-chip DMA channels on SH7091.
sh: update defconfigs.
sh: Kill off broken direct-mapped cache mode.
sh: Wire up ARCH_HAS_DEFAULT_IDLE for cpuidle.
sh: Add a command line option for disabling I/O trapping.
sh: Select ARCH_HIBERNATION_POSSIBLE.
sh: migor: Fix up CEU use flags.
input: migor_ts: add wakeup support
rtc: rtc-sh: use set_irq_wake()
input: sh_keysc: use enable/disable_irq_wake()
sh: intc: set_irq_wake() support
sh: intc: install enable, disable and shutdown callbacks
clocksource: sh_cmt: use remove_irq() and remove clockevent workaround
sh: ap325 and Migo-R use new sh_mobile_ceu_info flags
sh: Fix up -Wformat-security whining.
sh: ap325rxa: Add ov772x support, again.
sh: Sanitize asm/mmu.h for assembly use.
sh: Tidy up sh7786 pinmux table.
...
Diffstat (limited to 'arch/sh/kernel/process_32.c')
-rw-r--r-- | arch/sh/kernel/process_32.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c index 694bc15f84fd..6d94725d22f2 100644 --- a/arch/sh/kernel/process_32.c +++ b/arch/sh/kernel/process_32.c | |||
@@ -176,14 +176,26 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, | |||
176 | { | 176 | { |
177 | struct thread_info *ti = task_thread_info(p); | 177 | struct thread_info *ti = task_thread_info(p); |
178 | struct pt_regs *childregs; | 178 | struct pt_regs *childregs; |
179 | #if defined(CONFIG_SH_FPU) | 179 | #if defined(CONFIG_SH_FPU) || defined(CONFIG_SH_DSP) |
180 | struct task_struct *tsk = current; | 180 | struct task_struct *tsk = current; |
181 | #endif | ||
181 | 182 | ||
183 | #if defined(CONFIG_SH_FPU) | ||
182 | unlazy_fpu(tsk, regs); | 184 | unlazy_fpu(tsk, regs); |
183 | p->thread.fpu = tsk->thread.fpu; | 185 | p->thread.fpu = tsk->thread.fpu; |
184 | copy_to_stopped_child_used_math(p); | 186 | copy_to_stopped_child_used_math(p); |
185 | #endif | 187 | #endif |
186 | 188 | ||
189 | #if defined(CONFIG_SH_DSP) | ||
190 | if (is_dsp_enabled(tsk)) { | ||
191 | /* We can use the __save_dsp or just copy the struct: | ||
192 | * __save_dsp(p); | ||
193 | * p->thread.dsp_status.status |= SR_DSP | ||
194 | */ | ||
195 | p->thread.dsp_status = tsk->thread.dsp_status; | ||
196 | } | ||
197 | #endif | ||
198 | |||
187 | childregs = task_pt_regs(p); | 199 | childregs = task_pt_regs(p); |
188 | *childregs = *regs; | 200 | *childregs = *regs; |
189 | 201 | ||