Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: G5 powermacs
> >> NetBSD/macppc OpenFirmware Boot, Revision 1.12
> 5926884
> Invalid memory access at %SRR0: 00000000.00e0bed8 %SRR1: 10000000.00003030
> ok
> 0 >
...
> (gdb) x/i 0xe0bed8
> 0xe0bed8: b 0xe0ac50
> (gdb)
> (gdb) x/3i 0xe0bed0
> 0xe0bed0: li r10,18
> 0xe0bed4: stw r10,0(r31)
> 0xe0bed8: b 0xe0ac50
> (gdb)
>
> That all looks quite innocent, unless it halts on the "next"
> instruction and the contents of r31 makes it unhappy?
>
> I'll do a re-build of the 7.1 release bits and look at the
> unstripped ofwboot.mrg so that I can get symbols...
Did that, and the insns are a little off, and had to temporarily
remove the -s in ofwboot's Makefile to get the symbols:
(gdb) x/3i 0xe0bed0
0xe0bed0 <inflate+4884>: addi r26,r26,-1
0xe0bed4 <inflate+4888>: addi r25,r25,1
0xe0bed8 <inflate+4892>: stb r10,-1(r25)
(gdb)
0xe0bedc <inflate+4896>: li r10,18
0xe0bee0 <inflate+4900>: stw r10,0(r31)
0xe0bee4 <inflate+4904>: b 0xe0ac5c <inflate+160>
(gdb)
0xe0bee8 <inflate+4908>: lwz r10,8(r31)
0xe0beec <inflate+4912>: cmpwi cr7,r10,0
0xe0bef0 <inflate+4916>: beq cr7,0xe0bfdc <inflate+5152>
(gdb)
Regards,
- Håvard
Home |
Main Index |
Thread Index |
Old Index