Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
via ata raid
Argh once again I got stung by the need for
Index: ata_raid_via.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ata/ata_raid_via.c,v
retrieving revision 1.4
diff -u -r1.4 ata_raid_via.c
--- ata_raid_via.c 7 Feb 2008 13:48:33 -0000 1.4
+++ ata_raid_via.c 27 Feb 2008 13:49:28 -0000
@@ -167,10 +167,7 @@
/* calculate checksum and compare for valid */
for (checksum = 0, ptr = (uint8_t *)info, count = 0; count < 50;
count++)
- if (count == 3)
- checksum += *ptr++ & ~ VIA_T_BOOTABLE;
- else
- checksum += *ptr++;
+ checksum += *ptr++;
if (checksum != info->checksum) {
DPRINTF(("%s: VIA V-RAID checksum failed 0x%02x != 0x%02x\n",
sc->sc_dev.dv_xname, checksum, info->checksum));
Ockham's Razor seems to agree...
Cheers,
Patrick
Home |
Main Index |
Thread Index |
Old Index