Re: 4kb for kernel stack - what is that?

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

 



regarding kernel stacks and interrupts:

On Sun, 13 Apr 2008, Rene Herman wrote:

> (*) Per thread and a bit less in fact, since the current thread's
> thread_struct lives at the bottom. The option furthermore also means
> you get seperate interrupt stacks (also meaning that depending on
> usage you might even end with more generally available stack with
> the 4KSTACK option then without, when interrupt handlers share the
> stack).

  as i understand it (and i just want to make sure i have this right),
on x86, if you have 8K stacks, then an interrupt simply "borrows" the
stack of the process that was interrupted, right?  so even though
interrupt handlers don't run in a process context, they'll quietly use
the stack of that process anyway.

  if, however, you select 4K stacks, what happens?  is there now a
single, separate 4K stack for interrupts, completely independent from
each process' kernel stack?  thanks.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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