[okl4-developer] How to detect if a thread is in the IAS?
Carl van Schaik
carl at ok-labs.com
Tue May 22 11:28:37 EST 2007
Hi Harry,
In terms of L4, there is no difference between EAS spaces and Iguana
address spaces. So any way of determining the diffference would need to
be done by Iguana. One solution would be to ask Iguana directly, I don't
think there is a call for this.
Possibly better alternative:
Although libraries probably don't know which address space they are in,
the loader definitely knows if it is an Iguana or standalone app, so I
would say it should probably pass this information to the libraries it
is loading.
regards,
Carl
Harry Vennik wrote:
> Hi,
>
> Maybe it seems a bit strange, but it would be nice if there is some
> function to detect whether the current thread is in an external
> address space or in the iguana address space. It is possible to make
> the distinction at compile time, but I'd rather do it at runtime for
> libraries, because I want to implement dynamic linking later on, and
> then a lib should be usable both in EAS and in IAS threads.
>
> I have not been able to find a function like that. Did I just look
> over it, or does it really not exist?
>
> Regards,
>
> Harry
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
>
More information about the Developer
mailing list