Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ofwboot.xcf and gcc 4.8 and ppc 601



Hi,

ofwboot.xcf stopped working with my powermac 7200/ppc 601 after the
upgrade to gcc 4.8.  Everything else seems to work as before as far as
I can tell.  I'm still able boot with the same ofwboot.xcf compiled
with gcc 4.5.

I believe I'm getting a program exception at line 148 in
/src/sys/arch/macppc/stand/ofwboot/Locore.c

"6:	b	startup		\n"

which is just a branch call.  I also had to change line 144
from
	"	stw	%r0,0(%r8)	\n"
to
	"	stb	%r0,0(%r8)	\n"
	"	stb	%r0,1(%r8)	\n"
	"	stb	%r0,2(%r8)	\n"
	"	stb	%r0,3(%r8)	\n"

otherwise I got alignment exceptions.

Anyone have any ideas about why this branch would fail or what might
really be going on?

Thanks

0 > boot  file: 10.0.0.1,ofwboot.xcfloading XCOFF
tsize=E260 dsize=258 bsize=2750 entry=E00000                                    
SECTIONS:
.eh_fram 00000074 00000074 000020C8 00000174
.text    00E00000 00E00000 0000E260 00002240
.text.st 00E0E254 00E0E254 00000468 000104A0
.data    00E0F000 00E0F000 00000258 00010908
.bss     00E0F258 00E0F258 00002750 00000000
.gnu.att 00000000 00000000 00000010 00010B60
.ident   00000000 00000000 00000076 00010B70
loading .text, done..
loading .data, done..
clearing .bss, done..
DEFAULT CATCH!, code=FFF00700
 ok
0 > .registers
Client's Fix Pt Regs:
 00 00E00290 00E112A0 00000000 00000004 00E0D991 00E0F2AC 00000004 DEADBEEF
 08 00E119AA FF8099B8 DEADBEEF 00E112A0 DEADBEEF DEADBEEF DEADBEEF DEADBEEF
 10 DEADBEEF DEADBEEF DEADBEEF DEADBEEF DEADBEEF DEADBEEF DEADBEEF DEADBEEF
 18 DEADBEEF DEADBEEF DEADBEEF DEADBEEF DEADBEEF DEADBEEF FF829898 00E0F2A4
Special Regs:
    %IV: 00000700   %SRR0: 00E0E254   %SRR1: 00083070     %MQ: 00000060
    %CR: 30000003     %LR: 00E0029C    %CTR: FF8099B8    %XER: C000BE6F
   %DAR: 00001000  %DSISR: 42000000   %SDR1: 00FE0000
 ok
0 > dev /memory .properties
name                    memory
device_type             memory
reg                     00000000  10000000
available               00000000 00E00000 00E12000 000EE000 01000000 0F000000


Home | Main Index | Thread Index | Old Index