[OpenBIOS] Sun OBP bugs in 1.0RC1

Stefan Reinauer stepan at coresystems.de
Fri Mar 9 02:14:27 CET 2007


* Blue Swirl <blueswir1 at hotmail.com> [070217 09:57]:
> >4) Error messages:
> >"obp_devopen(sd(0,0,0):d) = 0xffd8e270
> >obp_inst2pkg(fd 0xffd8e270) = 0xffd57f44
> >obp_getprop(0xffd57f44, device_type) (not found)"
> >
> >Bug: The OpenBIOS "interpose" implementation is not transparent to
> >non-interposition-aware code (in violation of the interposition spec).
> > The inst2pkg call in this sequence returns the phandle for
> >/packages/misc-files, instead of the proper phandle.

> >Quick fix: Comment out the "interpose disk-label" lines in ob_sd_open.
> >
> >Shortcomings: It disables disk-label.  The correct fix is to fix the
> >underlying problem with interposition, but I'm not sure exactly what
> >it is.  Could someone help?
> 
> Sorry, I'm not so familiar with Forth internals. Stepan?

So what's the correct thing to do, inst2pkg is supposed to return the
phandle to sd, even though the device was interposed?

A quick look reveils we might need a special case for ihandle>phandle 
in case of an interposed device. 



-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/



More information about the OpenBIOS mailing list