[parisc-linux] [RFC] vdso for parisc-linux

Carlos O'Donell carlos at systemhalted.org
Wed Nov 1 08:04:39 MST 2006


On 10/31/06, Randolph Chung <randolph at tausq.org> wrote:
> > atomic ops are *not* prime candidates for vDSO's, I was wrong about
> > this. There are special requirements for the atomic operations which
> > require access to kernel locks, no scheduling, and no signals.  All of
> > these are impossible to do if gdb can write to code, thus we put the
> > atomic ops on the gateway page (which has the aforementioned special
> > properties).
>
> i can't quite see how lws disables scheduling... maybe you can enlighten
> me :)


> Well, there are two parts:
> 1) Finding "sigreturn"
> 2) Finding the system state on the stack
>
> Right now this is all done on parisc-linux by poking in memory using
> magic constants.
>
> On HPUX, #1 is available symbolically, but #2 still requires poking in
> memory using magic constants. It is particularly nasty on HPUX because
> the kernel can store state in either narrow or wide mode and the offsets
> are not fixed.

On parisc-linux there is *always* a 32-bit system state on the stack.
If you have a 64-bit kernel there is an auxiliary section which
contains the register top-halves. I think we can conjure up some magic
to determine which structure is on the stack.

> > What testing do we need to do before you check this into git?
>
> What I have is just infrastructure, we need to add some functionality
> into it :)

Yes, but if it gets checked into git it makes it easier to keep it
from bitrotting.
With your HK timezone it makes coordinating more difficult.

Cheers,
Carlos.



More information about the parisc-linux mailing list