[parisc-linux] Re: how to handle ERESTART_RESTARTBLOCK ?

John David Anglin dave@hiauly1.hia.nrc.ca
Sun, 26 Oct 2003 14:53:41 -0500 (EST)


> [...]
> ble 0x100(%sr2, %r0)    /* call nanosleep */
> ldi 0xa2,%r20
>     ldo 64(%sp),%sp
>     ble 0x100(%sr2, %r0)
>     ldi 0,%r20
>     b,l .+8, %r21
>     [...]
>     bv %r0(%r20)
>     ldo -64(%sp),%sp
> ldi -1000,r1
> [...]
> 
> (indented part added by the kernel)
> 
> so it should be invisible to the syscall wrapper/application.
> 
> or am i missing something? :-)

You probably have to be careful here with respect to signals, etc.
Technically, the frame marker is supposed to move when a dynamic
stack allocation is done.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)