Date: Wed, 20 Aug 2003 01:39:37 +0200 (CEST) From: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> To: sos@FreeBSD.org Cc: freebsd-hackers@freebsd.org Subject: Bug FreeBSD 4.8 ATA driver Message-ID: <Pine.LNX.4.44.0308200130120.12189-100000@artax.karlin.mff.cuni.cz>
next in thread | raw e-mail | index | archive | help
Hi I am reading FreeBSD ATA drivers because I want to use them as base for my ATA driver and I found a total nonsence: in ata-dma.c in FreeBSD 4.8, there is line if (!((pci_read_config(parent,0x40,4)>>(ch->unit<<8))&0x4000)) { if ch->unit is 1, config word is shifted by 256 bytes, which gives undefined result in C. How was this meant? What should it do? Mikulas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0308200130120.12189-100000>