Re: Crosscompiling NetBSD for Fonera not working with HEAD?

David Holland <[email protected]> Mon, 6 Jul 2009 02:02:02 +0000
Newsgroups gmane.os.netbsd.ports.evbmips
Message-ID <[email protected]>
On Sun, Jul 05, 2009 at 11:38:28PM +0000, David Holland wrote:
 > Can you post the disassembly of the function that call site is
 > calling? (ath_hal_reg_read)

n/m, Arnaud fixed the build and I got my own.

It's not an abicall, just a call through a function pointer, but I
guess gcc prefers to prepare function pointers in t9 even when
-mno-abicalls is in effect. And it *is* a tail call, which is why we
see what we do in ra.

It looks as if the problem is that the bus space tag is bogus, and so
the bus_space_read inside ath_hal_reg_read is fetching a garbage
function pointer from it and jumping off into the weeds.

-- 
David A. Holland
[email protected]