From: David Miller Date: Wed, 27 May 2009 21:02:42 +0000 Subject: Re: silo on qemu-system-sparc64 Message-Id: <20090527.140242.98739941.davem@davemloft.net> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org From: Igor Kovalenko Date: Thu, 28 May 2009 00:47:14 +0400 > The problem is with code in first-isofs/crt0.S where it tries to > clear BSS, it is using %i3 register value to compute address. > It occurs that openbios image does not really care about > contents of %i3 before calling loaded silo code. So %i3 can > have odd value and subsequent store is faulting with > unaligned access. > > Any hints on what does silo expect in %i3 are appreciated, > so we could amend openbios code to provide good initial > state to silo. It looks like a bug, %i3 isn't initialized to anything. It works, as you found, because openfirmware always clears this register upon jumping to client code. And therefore openbios should do so as well.