> You have to pass the stack pointer for thread_load(). "stack" is a base
> address of the stack in this case.

Yeah, it's very interesting point. It's worked when I modify calling
thread_load to:
    if (thread_load(child, child_thread, stack+1024) != 0)

But I have little confused: why don't we use "stack" instead of
"stack+1024"? Is there any clue when declare stack pointer for thread?

Happy new year with best wishes,
VTB.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Prex-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/prex-devel

Reply via email to