* 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
* Stack register value in the kernel setup code 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 0 siblings, 1 reply; 3+ messages in thread From: John de la Garza @ 2014-12-24 15:43 UTC (permalink / raw) To: kernelnewbies On Wed, Dec 24, 2014 at 03:23:15PM +0600, Alexander Kuleshov wrote: > 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) > What kernel version are you running? Have you seen: Documentation/x86/boot.txt ^ permalink raw reply [flat|nested] 3+ messages in thread
* Stack register value in the kernel setup code 2014-12-24 15:43 ` John de la Garza @ 2014-12-24 16:47 ` Alexander Kuleshov 0 siblings, 0 replies; 3+ messages in thread From: Alexander Kuleshov @ 2014-12-24 16:47 UTC (permalink / raw) To: kernelnewbies Hello John, kernel - 3.18. Yes sure i saw boot protocol. What means 'Kernel setup' is it only header.S code or all real mode code before protected mode? Thank you. 2014-12-24 21:43 GMT+06:00 John de la Garza <john@jjdev.com>: > On Wed, Dec 24, 2014 at 03:23:15PM +0600, Alexander Kuleshov wrote: >> 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) >> > > What kernel version are you running? > > Have you seen: Documentation/x86/boot.txt -- _________________________ 0xAX ^ 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).