* [RFC] breakage either in arch/sh/Kconfig or arch/sh/kernel/process.c?
@ 2005-09-29 6:12 Al Viro
2005-09-29 6:31 ` Al Viro
0 siblings, 1 reply; 2+ messages in thread
From: Al Viro @ 2005-09-29 6:12 UTC (permalink / raw)
To: linux-sh; +Cc: linux-kernel
In process.c:
void flush_thread(void)
{
#if defined(CONFIG_SH_FPU)
struct task_struct *tsk = current;
struct pt_regs *regs = (struct pt_regs *)
((unsigned long)tsk->thread_info
+ THREAD_SIZE - sizeof(struct pt_regs)
- sizeof(unsigned long));
...
and
int dump_task_regs(struct task_struct *tsk, elf_gregset_t *regs)
{
struct pt_regs ptregs;
ptregs = *(struct pt_regs *)
((unsigned long)tsk->thread_info + THREAD_SIZE
- sizeof(struct pt_regs)
#ifdef CONFIG_SH_DSP
- sizeof(struct pt_dspregs)
#endif
- sizeof(unsigned long));
which is obviously inconsistent if we ever build with both SH_FPU and SH_DSP
set. Now, in arch/sh/Kconfig we see that SH_FPU depends on !CPU_SH3 and SH_DSP
on !CPU_SH4. Which leaves CPU_SH2 picking both options.
Comments? Looks like either Kconfig or flush_thread() needs fixing...
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC] breakage either in arch/sh/Kconfig or arch/sh/kernel/process.c?
2005-09-29 6:12 [RFC] breakage either in arch/sh/Kconfig or arch/sh/kernel/process.c? Al Viro
@ 2005-09-29 6:31 ` Al Viro
0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2005-09-29 6:31 UTC (permalink / raw)
To: linux-sh; +Cc: linux-kernel
On Thu, Sep 29, 2005 at 07:12:39AM +0100, Al Viro wrote:
> set. Now, in arch/sh/Kconfig we see that SH_FPU depends on !CPU_SH3 and SH_DSP
> on !CPU_SH4. Which leaves CPU_SH2 picking both options.
>
> Comments? Looks like either Kconfig or flush_thread() needs fixing...
And that would be Kconfig, from the look of it. Any suggestions on the
dependencies?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-29 6:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-29 6:12 [RFC] breakage either in arch/sh/Kconfig or arch/sh/kernel/process.c? Al Viro
2005-09-29 6:31 ` Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox