On Mon, Jan 14, 2008 at 08:43:40AM -0500, Michael Lorenz wrote: > Ok, I had to ask - I build my sparc64 kernels natively or crossbuild > on macppc and FreeBSD/i386 ;) > Hmm, there seems to be something crazy going on in the firmware, I > dimly remember a similar problem and I /think/ I got around it by > shuffling OF_getprop() calls around. > A few things to try: > - - call OF_getproplen on the depth property, see if it returns > something sane. If not we might be able to use that for a workaround. A workaround that works (I just tried it) is changing the default depth (when OFW returns an error size) to 32. But that might just break other systems, right? Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth
Attachment:
pgpZjhr7VY3g9.pgp
Description: PGP signature