Closed lingcs00 closed 1 year ago
There's another invocation for setting the thread local storage area seL4_TCB_SetTLSBase: https://github.com/seL4/seL4_libs/blob/master/libsel4utils/src/thread.c#L189.
The top of sel4utils_start_thread() shows how you can set up the __sel4_ipc_buffer address when starting a new thread: https://github.com/seL4/seL4_libs/blob/master/libsel4utils/src/thread.c#L163-L172
when i creat thread in the end of main.c(sel4test-driver) like this:
In thread1 function code like this:
I will get vm fault because __sel4_ipc_buffer is thread local variable. I guess that i creat the thread1 with set pc = thread1 and not init the thread local variable. But actually i alloc the ipc buffer and set successfully,i wanna know that the situation is seL4_Send function bug or feature?