]> Zhao Yanbai Git Server - minix.git/commitdiff
fixed compile warning
authorBen Gras <ben@minix3.org>
Wed, 4 May 2005 09:28:58 +0000 (09:28 +0000)
committerBen Gras <ben@minix3.org>
Wed, 4 May 2005 09:28:58 +0000 (09:28 +0000)
drivers/floppy/floppy.c

index d9b1cfb6e6696f9809056cf3dca931e2cb1bdec2..1719ff0aaeabba680da7bdb2eca13ca393f0012f 100644 (file)
@@ -645,7 +645,7 @@ int opcode;                 /* DEV_GATHER or DEV_SCATTER */
   pv_set(byte_out[3], DMA_ADDR, (unsigned) tmp_phys >>  0);
   pv_set(byte_out[4], DMA_ADDR, (unsigned) tmp_phys >>  8);
   pv_set(byte_out[5], DMA_TOP, (unsigned) (tmp_phys >> 16));
-  pv_set(byte_out[6], DMA_COUNT, (SECTOR_SIZE - 1) >> 0);
+  pv_set(byte_out[6], DMA_COUNT, (((SECTOR_SIZE - 1) >> 0) & 0xff));
   pv_set(byte_out[7], DMA_COUNT, (SECTOR_SIZE - 1) >> 8);
   pv_set(byte_out[8], DMA_INIT, 2);            /* some sort of enable */