[okl4-developer] Bug in multithread Example
Nelson Tam
nelson at ok-labs.com
Thu Mar 6 11:10:24 EST 2008
Hi Martin,
On 05/03/2008, at 10:58 PM, Martin Lawitzky wrote:
> Unfortunately, thread_l4tid() trashes the MSRs. Hence, all the
> MsgClear Set_MsgLabel and MsgLoad is irrelevant.
>
> I tried to figure out how to send any useful stuff in the message
> registers. I always received just trash at the callee.
> I checked every single line in the IPC path before I found out, that
> thread_l4tid() is more than an innocent macro.
>
> Now I know, but maybe you should insert a tiny comment in the
> example for the next release. Or better don't nest the thread_L4tid
> function in the L4_Call to make the 3 lines above even somewhat
> useful.
Thanks for picking that up! The multithread example is used mainly to
demonstrate a ping-pong IPC between two threads, with less emphasis on
the message payload. Nonetheless we'll take note in the future.
--
(nt)
Nelson Tam
nelson at ok-labs.com
More information about the Developer
mailing list