kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Stack register value in the kernel setup code
@ 2014-12-24  9:23 Alexander Kuleshov
  2014-12-24 15:43 ` John de la Garza
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kuleshov @ 2014-12-24  9:23 UTC (permalink / raw)
  To: kernelnewbies

Hello,

I runn kernel with grub in qemu, connected with gdb and put break
point to 0x10200 (to this jump -
https://github.com/torvalds/linux/blob/master/arch/x86/boot/header.S#L297)

Registers value are following:

eax            0x1020    4128

ecx            0x0    0

edx            0x100000    1048576

ebx            0x0    0

esp            0xf7f4    0xf7f4

ebp            0x0    0x0

esi             0x1ac7c    109692

edi             0x0    0

eip             0x68    0x68

eflags         0x2    [ ]

cs              0x1020    4128

ss              0x1000    4096

ds              0x1000    4096

es              0x1000    4096

fs               0x1000    4096

gs              0x1000    4096

Seems that segment registers are corret, but why esp is 0xf7f4?

Thank you.

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

end of thread, other threads:[~2014-12-24 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-24  9:23 Stack register value in the kernel setup code Alexander Kuleshov
2014-12-24 15:43 ` John de la Garza
2014-12-24 16:47   ` Alexander Kuleshov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).