[−][src]Static sunrise_libuser::threads::MAIN_THREAD_CONTEXT
static MAIN_THREAD_CONTEXT: ThreadContext
Context of the main thread. Instead of allocating it at startup, this one lives in the .data
.
The handle of the main thread is stored to it at startup.
Mock values:
Because the main thread is started by the kernel and not libuser, we don't have control or even knowledge of most of the fields that should be in our context. Because of this, we choose to put mock values instead. This includes:
.entry_point
: unused, we are started by the kernel.arg
: unused.stack
: our stack is not allocated by us, and we don't know its size.