On Wed, Aug 20, 2008 at 3:43 PM, Mayuresh <[EMAIL PROTECTED]> wrote:
>
> A process has both user space stack and kernel space stack. When a system
> call happens, all parameters are either copied to stack or in registers and
> using exception it switches to kernel. As from asmlinkage, I understand
> parameters are passed onto stack. So once in kernel space, all parameters
> are poped from stack, which is user stack.
>
> My query is when does a process starts using kernel stack ?
>

Or to make Zhou's answer simpler: when it starts entering kernel
space. In x86, it happens right when int x80 or syscall/sysenter
handler is executed.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to