[OLPC-devel] Re: olpcflash 0.1.0 Alpha

Jordan Crouse jordan.crouse at amd.com
Wed Aug 16 10:59:06 EDT 2006


On 15/08/06 23:58 -0500, Richard Smith wrote:
> void put_kbc_in_reset(void){
> 	unsigned char val;
> 	unsigned long timeout = 500000;
> 
> 	outb(0xd8,0x66);
> 	while((inb(0x66) & 0x02) & timeout>0) {
> 		timeout--;
> 	}

That while statement looks a bit suspect.  Looks like you missed a &.

Jordan





More information about the Devel mailing list