cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ilan2010
Visitor
Visitor
1,968 Views
Registered: ‎12-15-2009

restore context problem

Hi,

I'm using the Xilkernel in the first time.

I followed xilkernel example code, and according to that code after calling xilkernel_main() the system jumped to my main thread. In this thread I created  a new thread by calling pthread_create().The system jumped to the requested function and exited from that function. The system returned to the pthread_wrapper() but didn't returned to any place after calling the restore_context() function.

The stack calls are as follows: pthread_wrapper(),sys_pthread_exit(),suspend(), restore_context().

 

Can anybody to direct me how to debug this problem?

 

Second, is there any Xilkernel documentation, besides the xilkernel(v.4.00.a) document that mostly holds the xilkernel APIs. Any document that elaborates the inner activity of the xilkernel like the restore_context() function?

 

Thanks in advance.

0 Kudos
0 Replies