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?