At what instant process starts using kernel stack ?

2008-08-20 Thread Mayuresh
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

Re: At what instant process starts using kernel stack ?

2008-08-20 Thread Steven Zhou
from ULK: Hardware Handling of Interrupts and Exceptions We now describe how the CPU control unit handles interrupts and exceptions. We assume that the kernel has been initialized, and thus the CPU is operating in Protected Mode. After executing an instruction, the cs and eip pair of registers

Re: At what instant process starts using kernel stack ?

2008-08-20 Thread Mulyadi Santosa
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

Re: At what instant process starts using kernel stack ?

2008-08-20 Thread Rene Herman
On 20-08-08 10:43, Mayuresh 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