[RFC/PATCH 2/4] powerpc: ptrace can set DABR on both 32 and 64 bits

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed May 30 22:56:22 EST 2007


On Wed, 2007-05-30 at 07:44 -0500, Kumar Gala wrote:
> On May 30, 2007, at 3:05 AM, Benjamin Herrenschmidt wrote:
> 
> > Allow ptrace to set dabr in the thread structure for both 32 and 64  
> > bits,
> > though only 64 bits actually uses that field, it's actually defined  
> > in both.
> >
> > Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> 
> Can you make these -EIO for CONFIG_BOOKE for now.

I suppose best is to define set_dabr to have a result code...

The std DABR format is good enough to carry a generic setting whatever
the HW implementation is I think.

Ben.





More information about the Linuxppc-dev mailing list