Fix usermode->kernelmode transition
Make sure the kernel is running with the correct segment
Allocate a kernel stack for the process
Prepare exit support
Clean
Clean
Prepare structures for scheduling