Subject: Re: Please test BIOS device matching code (i386)
To: None <M.Drochner@fz-juelich.de>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 03/11/1999 16:01:43
On Mar 11, drochner@zel459.zel.kfa-juelich.de wrote
> 
> bouyer@antioche.lip6.fr said:
> >  	pvbcopy((void *)(0x400 + 0x75), &nhd, 1);
> > +	nhd &= 0xff; 
> 
> pvbcopy() copies 1 byte out of the BIOS data area, so
> the upper 3 bytes of "nhd" remain uninitialized.
> The correct solution is to either declare "nhd" as
> char or zero it before.
> 

Ha, ok. The "&= 0xff" does the rigth thing, but is not really pretty :)

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--