--- Net2/arch/i386/stand/wd.c 2018/04/24 18:04:01 1.1 +++ Net2/arch/i386/stand/wd.c 2018/04/24 18:05:12 1.1.1.2 @@ -250,7 +250,7 @@ retry: if (inb(wdc+wd_status) & WDCS_ERR) goto error; #ifdef WDDEBUG -printf("+"); +printf("addr %x",addr); #endif return (0); error: @@ -314,6 +314,7 @@ tryagainrecal: return(-1); } +#ifdef nada /* * Some controllers require this (after a recal they * revert to a logical translation mode to compensate for @@ -328,6 +329,7 @@ tryagainrecal: outb(wdc+wd_command, 0x91); while (inb(wdc+wd_status) & WDCS_BUSY) ; +#endif errcnt = 0; retry: /* @@ -389,6 +391,7 @@ retry: #endif SMALL +#ifdef nada /* now that we know the disk geometry, tell the controller */ outb(wdc+wd_cyl_lo, dd->d_ncylinders); outb(wdc+wd_cyl_hi, (dd->d_ncylinders)>>8); @@ -396,9 +399,10 @@ retry: outb(wdc+wd_seccnt, dd->d_nsectors); outb(wdc+wd_command, 0x91); while (inb(wdc+wd_status) & WDCS_BUSY) ; +#endif dkbad[unit].bt_bad[0].bt_cyl = -1; - outb(wdc+wd_precomp, dd->d_precompcyl / 4); + /*outb(wdc+wd_precomp, dd->d_precompcyl / 4);*/ /* * Read bad sector table into memory.