mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Parity Error" <bootup@mail.ru>
To: linux-kernel@vger.kernel.org
Subject: switch_to()/doesnt %esp get replaced with %ebp on ret
Date: Mon, 19 Mar 2001 16:19:09 +0300	[thread overview]
Message-ID: <E14ezYx-000J2L-00@f6.mail.ru> (raw)

in schedule(), switch_to() macro changes esp to
the new process's stack. But, on exit frm schedule,
how come it does not get overwritten with  ebp-24,
as the dissasembled code shows. The code was compiled
without the -fomit-frame-pointer.

        pushl 508(%ecx)
        jmp __switch_to
1:      popl %ebp
        popl %edi
        popl %esi

        jmp .L1180

.L1180: 
	leal -24(%ebp),%esp
        popl %ebx
        popl %esi
        popl %edi
        movl %ebp,%esp
        popl %ebp
        ret




             reply	other threads:[~2001-03-19 13:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-19 13:19 Parity Error [this message]
2001-03-19 14:04 ` Jamie Lokier
2001-03-20 10:51   ` Re[2]: " Parity Error
2001-03-20 11:23     ` Jamie Lokier

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=E14ezYx-000J2L-00@f6.mail.ru \
    --to=bootup@mail.ru \
    --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

all inboxes | Powered by JetHome®