Re: arm: store curcpu pointer in thread id register

2016-09-02 Thread Jonathan Gray
On Sat, Feb 27, 2016 at 05:03:46PM +0100, Patrick Wildt wrote: > On Fri, Feb 26, 2016 at 08:59:41PM -0800, Philip Guenther wrote: > > On Sat, Feb 20, 2016 at 1:49 PM, Patrick Wildt wrote: > > > since ARMv6 the coprocessor provides special registers to store software > > >

Re: arm: store curcpu pointer in thread id register

2016-04-02 Thread Patrick Wildt
ok? On Sat, Feb 20, 2016 at 10:49:36PM +0100, Patrick Wildt wrote: > Hi, > > since ARMv6 the coprocessor provides special registers to store software > defined values. Those registers are: > > * TPIDRURW -> kernel RW, user RW > * TPIDRURO -> kernel RW, user RO > * TPIDRPRW -> kernel RW >

Re: arm: store curcpu pointer in thread id register

2016-02-29 Thread Alex French
> > (What is it with the arm docs giving N names to registers without a > > "here's the mapping" table splatted somewhere obvious?) > > No idea. ARM's "Infocenter" is really hard to read. Instead I always > have a copy of the ARM ARM and Cortex-XX PDFs around. FWIW, the ARMv7-A/R ARM

Re: arm: store curcpu pointer in thread id register

2016-02-27 Thread Patrick Wildt
On Fri, Feb 26, 2016 at 08:59:41PM -0800, Philip Guenther wrote: > On Sat, Feb 20, 2016 at 1:49 PM, Patrick Wildt wrote: > > since ARMv6 the coprocessor provides special registers to store software > > defined values. Those registers are: > > > > * TPIDRURW -> kernel RW,

Re: arm: store curcpu pointer in thread id register

2016-02-26 Thread Philip Guenther
On Sat, Feb 20, 2016 at 1:49 PM, Patrick Wildt wrote: > since ARMv6 the coprocessor provides special registers to store software > defined values. Those registers are: > > * TPIDRURW -> kernel RW, user RW > * TPIDRURO -> kernel RW, user RO > * TPIDRPRW -> kernel RW > >

Re: arm: store curcpu pointer in thread id register

2016-02-26 Thread Patrick Wildt
Bump, now that the tree is unlocked again. Patrick On Sat, Feb 20, 2016 at 10:49:36PM +0100, Patrick Wildt wrote: > Hi, > > since ARMv6 the coprocessor provides special registers to store software > defined values. Those registers are: > > * TPIDRURW -> kernel RW, user RW > * TPIDRURO ->

arm: store curcpu pointer in thread id register

2016-02-20 Thread Patrick Wildt
Hi, since ARMv6 the coprocessor provides special registers to store software defined values. Those registers are: * TPIDRURW -> kernel RW, user RW * TPIDRURO -> kernel RW, user RO * TPIDRPRW -> kernel RW TPIDRPRW is typically used to store the pointer to the curcpu struct, while TPIDRURO