mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* switch_to()/doesnt %esp get replaced with %ebp on ret
@ 2001-03-19 13:19 Parity Error
  2001-03-19 14:04 ` Jamie Lokier
  0 siblings, 1 reply; 4+ messages in thread
From: Parity Error @ 2001-03-19 13:19 UTC (permalink / raw)
  To: linux-kernel

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




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

end of thread, other threads:[~2001-03-20 11:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-19 13:19 switch_to()/doesnt %esp get replaced with %ebp on ret Parity Error
2001-03-19 14:04 ` Jamie Lokier
2001-03-20 10:51   ` Re[2]: " Parity Error
2001-03-20 11:23     ` Jamie Lokier

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®