[RFC/PATCH 2/5] powerpc: Cleanup ptrace bits
Benjamin Herrenschmidt
benh at kernel.crashing.org
Wed May 30 21:24:41 EST 2007
On Wed, 2007-05-30 at 07:45 +1000, Benjamin Herrenschmidt wrote:
> > It looks like GDB will expect VRSAVE at offset 33*16 (length 4
> bytes)
> > in the area returned by PTRACE_GETVRREGS, for both 32-bit and
> 64-bit
> > applications:
>
> I have to check exactly what's going on there, it might be correct in
> both cases, I just remember that the code did something subtely
> different but it might result in the same thing. I'll double check
> today.
It was indeed correct in both cases, it just stupidly did direct ulong
refs on 32 bits and cast to u32 on 64 bits, which I consolidated into a
single implementation that uses u32 for vrsave so it should work fine.
Ben.
More information about the Linuxppc-dev
mailing list