Re: Question on Stack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2004-03-27 at 17:49, Rithin K Shetty wrote:

> * What is the stack used by modules to execute ?

Same as any other part of the kernel.

Process context kernel code uses that process's kernel stack. 
Non-process context kernel code (interrupt handlers, etc.) use the
kernel stack of whatever process they interrupted.

> * Is it always the case that Interrupt handlers use the kernel mode stack
> of   the process that was in execution when the interrupt occurred ?

Yes.

> What about the case when the control was in kernel when the interrupt is
> received ?

Don't follow.  If the kernel is executing process context code, then the
interrupt handler uses that process's kernel stack.

> * Also is it always the case that ebp register stores the address of the
> current user mode stack frame ?

Yes, although you can turn off the stack frame pointer if you so choose.

	Robert Love



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux