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

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to