diff --git a/src/sys/drivers/fdc.c b/src/sys/drivers/fdc.c index 388d326..8191038 100755 --- a/src/sys/drivers/fdc.c +++ b/src/sys/drivers/fdc.c @@ -1,8 +1,12 @@ /************************************************************************************** - Copyright (c) 2002 - The UbixOS Project + Copyright (c) 2002 The UbixOS Project + All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, + are prohibited. $Id$ + **************************************************************************************/ #include @@ -189,6 +193,23 @@ } } +bool readBlock(int block,byte *blockBuffer, unsigned long numSectors) { + int track=0, sector=0, head=0, track2=0, result=0, loop=0; + block2Hts(block, &head, &track, §or); + block2Hts(block+numSectors, &head, &track2, §or); + if (track!=track2) { + for (loop=0; loop