Windows – Stack Pointer Register values

windows

When a thread is executing in kernel mode, will the stack pointer points to its kernel mode stack? Similarly, will it points to the user mode stack when the thread is running in user mode?

Thanks.

Best Answer

It depends on what kind of process is executing. Recent linux kernels allow user processes in kernel mode There are also multiple stacks in each process and mode so your reference to "the stack pointer" is a little vague imho.

Related Topic