On 5/17/07, Nils Nieuwejaar <nils.nieuwejaar at sun.com> wrote:
>
> On Wed 05/16/07 at 23:48 PM, cquark at gmail.com wrote:
> >
> > Great if that is possible. I have thought to use a spare user-space
> register
> > as the indicator to avoid system calls when leaving the native code.
>
> I don't believe there are any spare registers.  Linux uses them all for
> system call arguments.  Some calls even stick an argument in %ebp.


As noted by Edward, I think %gs itself can be used - just check whether it
is set to LWPGS_SEL. ?

Regards,

Wei Shen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/brandz-discuss/attachments/20070518/f4ab1e77/attachment.html>

Reply via email to