Stack register value in the kernel setup code
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.
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
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
participants (2)
-
Alexander Kuleshov -
John de la Garza