Page 3 of 3

Posted: Tue May 01, 2007 9:12 am
by frank
You don't need to push the stack and the stack segment in a CP0 task.

Posted: Tue May 01, 2007 3:35 pm
by pcmattman
Yeah, I realized that... Mainly when I also realized that the return address is meant to be before the arguments, and the arguments are pushed in reverse... Oops.

Now I have arguments working, I just put into my createthread function a va_list that goes through each argument and pushes them (via a printf-style format string).

Posted: Tue May 01, 2007 8:01 pm
by frank
Yea I have something like that but I took it out for the example code. It just looked messy.