M pc/mem.h => pc/mem.h +1 -1
@@ 25,7 25,7 @@
#define HZ (82) /* clock frequency */
#define MS2HZ (1000/HZ) /* millisec per clock tick */
#define TK2SEC(t) ((t)/HZ) /* ticks to seconds */
-#define MS2TK(t) (((t)*HZ)/1000) /* milliseconds to ticks */
+#define MS2TK(t) (((t)*HZ+500)/1000) /* milliseconds to closest tick */
/*
* Fundamental addresses
M pc/sdata.c => pc/sdata.c +3 -2
@@ 604,8 604,9 @@ retry:
atadmamode(drive);
if(DEBUG & DbgCONFIG){
- print("dev %2.2uX config %4.4uX capabilities %4.4uX",
- dev, drive->info[Iconfig], drive->info[Icapabilities]);
+ print("dev %2.2uX port %uX config %4.4uX capabilities %4.4uX",
+ dev, cmdport,
+ drive->info[Iconfig], drive->info[Icapabilities]);
print(" mwdma %4.4uX", drive->info[Imwdma]);
if(drive->info[Ivalid] & 0x04)
print(" udma %4.4uX", drive->info[Iudma]);