Richard Miller | 11 May 10:19

Re: ipengine boot

> I can load the
> image into flash but get errors/traps when I run it.

I think inferno won't run directly from flash - it will have to relocate itself
to RAM and run from there.  To run Plan 9 on the ipengine I inserted this code
into l.s early on (just after the MSRSYNC).  If you're lucky this will work
for inferno too:

	/* if executing in rom, relocate to ram */
	MOVW	LR, R3
	MOVW	$4,	R4
	SUBCC	R4, R3
	BGE		ram
	MOVW	$start(SB), R4
	MOVW	$edata+63(SB), R5
	SUB		R4, R5, R1
	SRAW	$6, R1
	MOVW	R1,CTR
	MOVW	$KZERO, R2
	ANDN	R2, R4
	MOVW	R4, LR
reloc:
	MOVMW	0(R3), R16
	MOVMW	R16, 0(R4)
	ADD		$64, R4
	ADD		$64, R3
	BDNZ	reloc
	BR		(LR)
ram:


Gmane