asm-ppc64/ptrace.h / fscpr
Marcus Meissner
meissner at suse.de
Thu May 20 06:49:56 EST 2004
On Wed, May 19, 2004 at 03:17:30PM -0500, Steve Munroe wrote:
> Marcus Meissner <meissner at suse.de> wrote on 05/19/2004 10:44:26 AM:
>
> > The fpscr offset is wrong, it is at position 32 in the FPR array on
> > ppc64.
> >
> > Found by IBM gdb testing.
> >
> > I have the vague suspicion the ptrace32 compat handling might be
> > broken too, but I have to check.
>
> #define PT_FPR0 48
> #define PT_FPSCR (PT_FPR0 + 32 + 1)
>
> So how is this wrong? Is the kernel storing the FPSCR in the wrong
> slot?
The thread array has it at fpr[32], so it should be there too in that define:
double fpr[32]; /* Complete floating point set */
unsigned long fpscr; /* Floating point status (plus pad) */
since ptrace just copies it out of that struct directly.
ciao, Marcus
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list