public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: pageexec@freemail.hu
To: "Hanson, Jonathan M" <jonathan.m.hanson@intel.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: RE: KSTK_EIP and KSTK_ESP
Date: Mon, 08 Nov 2004 19:56:26 +0100	[thread overview]
Message-ID: <418FCF6A.4368.2314122E@localhost> (raw)
In-Reply-To: <C863B68032DED14E8EBA9F71EB8FE4C20542D290@azsmsx406>

> Shouldn't the ESP value pointed to by KSTK_ESP() point to the beginning of
> the pt_regs structure for the user space application?

first of all, anything can be on the userland stack at the time the
app issued a syscall. but you don't have to bother with the userland
stack at all, pt_regs is created on the kernel stack, check out the
SAVE_ALL macro (and its uses) in arch/i386/kernel/entry.S .


  reply	other threads:[~2004-11-08 18:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-08 17:36 KSTK_EIP and KSTK_ESP Hanson, Jonathan M
2004-11-08 18:56 ` pageexec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-11-05 23:13 Hanson, Jonathan M
2004-11-06 12:54 ` Arjan van de Ven
2002-02-08 21:08 Balbir Singh
2002-02-08 20:36 Balbir Singh
2002-02-08 20:55 ` David S. Miller
2002-02-11  6:20 ` Albert D. Cahalan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=418FCF6A.4368.2314122E@localhost \
    --to=pageexec@freemail.hu \
    --cc=jonathan.m.hanson@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox