Re: Boot Problem (and fix)

Avi Kivity
2008-11-09T10:23:17Z

the uni wrote:
> Sorry, just realized what you meant
>
> (qemu) info registers
> EAX=0000f3b3 EBX=00000012 ECX=0000e080 EDX=00000012
> ESI=ffff0000 EDI=0008fdba EBP=0000ffb0 ESP=0000ff9e
> EIP=000008d2 EFL=00033202 [-------] CPL=3 II=0 A20=1 SMM=0 HLT=0
> ES =0080 00000800 0000ffff 0000f300
> CS =f000 000f0000 0000ffff 0000f300
> SS =0000 00000000 0000ffff 0000f300
> DS =0000 00000000 0000ffff 0000f300
> FS =0000 00000000 0000ffff 0000f300
> GS =0000 00000000 0000ffff 0000f300
> LDT=0000 00000000 0000ffff 00008200
> TR =0000 fffbd000 00002088 00008b00
> GDT= 000fb812 00000030
> IDT= 00000000 000003ff
> CR0=00000010 CR2=00000000 CR3=00000000 CR4=00000000
> FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00000000
> FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
> XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
> XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
> XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
>
>

With which bios was this taken? Please supply sha1sum of bios.bin.

> (qemu) x/40b $eip
> 00000000000008d2: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> 00000000000008da: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> 00000000000008e2: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> 00000000000008ea: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> 00000000000008f2: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
>
> (qemu) x/i $eip
> 0x00000000000008d2: add %al,(%bx,%si)
>

My mistake: $eip + 0xf0000 would be more informative.

--
error compiling committee.c: too many arguments to function