Re: Boot Problem (and fix)

the uni
2008-11-06T18:42:30Z

> Please post what 'info registers' and 'x/40b $eip' produce on the monitor
> ('-monitor stdio' helps).

while hung on non-functioning bios:

(gdb) info registers
rax 0xfffffffffffffdfe -514
rbx 0xe 14
rcx 0xffffffffffffffff -1
rdx 0x7fffa4c81b70 140735957965680
rsi 0x7fffa4c81bf0 140735957965808
rdi 0xf 15
rbp 0x1 0x1
rsp 0x7fffa4c81ab0 0x7fffa4c81ab0
r8 0x7fffa4c81c70 140735957965936
r9 0xb40 2880
r10 0x7fffa4c81af0 140735957965552
r11 0x202 514
r12 0x7fffa4c81af0 140735957965552
r13 0x7fffa4c81b70 140735957965680
r14 0x7fffa4c81bf0 140735957965808
r15 0x1 1
rip 0x7f329b5ad0c2 0x7f329b5ad0c2 <select+98>
eflags 0x202 [ IF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
fctrl 0x37f 895
fstat 0x0 0
ftag 0xffff 65535
fiseg 0x0 0
fioff 0x0 0
foseg 0x0 0
fooff 0x0 0
fop 0x0 0
mxcsr 0x1f80 [ IM DM ZM OM UM PM ]

(gdb) x/40b $eip
Value can't be converted to integer.

(gdb) x/40b $rip
0x7f329b5ad0c2 <select+98>: 72 'H' -117 '\213' 60 '<' 36 '$'
72 'H' -119 '\211' 68 'D' 36 '$'
0x7f329b5ad0ca <select+106>: 8 '\b' -24 'è' -112 '\220' 16
'\020' 1 '\001' 0 '\0' 72 'H' -117 '\213'
0x7f329b5ad0d2 <select+114>: 68 'D' 36 '$' 8 '\b' 72 'H' -125
'\203' -60 'Ä' 56 '8' 72 'H'
0x7f329b5ad0da <select+122>: 61 '=' 1 '\001' -16 'ð' -1 'ÿ'
-1 'ÿ' 115 's' 1 '\001' -61 'Ã'
0x7f329b5ad0e2 <select+130>: 72 'H' -117 '\213' 13 '\r' -65
'¿' -18 'î'39 '\'' 0 '\0' 49 '1'

(gdb) x/i $rip
0x7f329b5ad0c2 <select+98>: mov (%rsp),%rdi