All of lore.kernel.org
 help / color / mirror / Atom feed
* what the difference between esp and esp0?
@ 2015-06-16 11:27 hitmoon
  2015-06-16 20:46 ` David Matlack
  0 siblings, 1 reply; 5+ messages in thread
From: hitmoon @ 2015-06-16 11:27 UTC (permalink / raw)
  To: kernelnewbies

An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150616/e4f80f4e/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* what the difference between esp and esp0?
  2015-06-16 11:27 what the difference between esp and esp0? hitmoon
@ 2015-06-16 20:46 ` David Matlack
  2015-06-17  3:11   ` 回复:Re: " hitmoon
  0 siblings, 1 reply; 5+ messages in thread
From: David Matlack @ 2015-06-16 20:46 UTC (permalink / raw)
  To: kernelnewbies

On Tue, Jun 16, 2015 at 4:27 AM, hitmoon <zhaoxiaoqiang007@gmail.com> wrote:
> Hi:
>     I recently read the book "understanding the linux kernel 3rd", in the
> task switch process, there are two esp in thread_struct. In macro
> 'switch_to' , The esp is loaded to switch to the next's kernel stack,  but
> in '__switch_to', esp0 is copied to tss's esp0 field, what the esp0 mean?
> What the difference between them?

esp0 is the stack pointer that is loaded into esp when the privileged level
changes to 0. For example, when a process running in user mode (level 3)
jumps into the kernel via a system call.

You can read more about it in the Intel SDM, Volume 3 Chapter 7.
http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* 回复:Re: what the difference between esp and esp0?
  2015-06-16 20:46 ` David Matlack
@ 2015-06-17  3:11   ` hitmoon
       [not found]     ` <5580E9E3.4080807@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: hitmoon @ 2015-06-17  3:11 UTC (permalink / raw)
  To: kernelnewbies

An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150617/f0c4b051/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* 回复:Re: 回复:Re: what the difference between esp and esp0?
       [not found]     ` <5580E9E3.4080807@gmail.com>
@ 2015-06-17  4:32       ` hitmoon
  2015-06-17 11:14       ` hitmoon
  1 sibling, 0 replies; 5+ messages in thread
From: hitmoon @ 2015-06-17  4:32 UTC (permalink / raw)
  To: kernelnewbies

An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150617/f5a88d2e/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* 回复:Re: 回复:Re: what the difference between esp and esp0?
       [not found]     ` <5580E9E3.4080807@gmail.com>
  2015-06-17  4:32       ` 回复:Re: " hitmoon
@ 2015-06-17 11:14       ` hitmoon
  1 sibling, 0 replies; 5+ messages in thread
From: hitmoon @ 2015-06-17 11:14 UTC (permalink / raw)
  To: kernelnewbies

An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150617/56eb2289/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-17 11:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-16 11:27 what the difference between esp and esp0? hitmoon
2015-06-16 20:46 ` David Matlack
2015-06-17  3:11   ` 回复:Re: " hitmoon
     [not found]     ` <5580E9E3.4080807@gmail.com>
2015-06-17  4:32       ` 回复:Re: " hitmoon
2015-06-17 11:14       ` hitmoon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.