M storage/IDE.pas

M    storage/fat32.pas
M    storage/storagemanagement.pas


git-svn-id: https://spexeah.com:8443/svn/Asuro@970 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
aaron
2020-07-11 00:32:59 +00:00
parent 6c931149f3
commit 86013b1125
3 changed files with 226 additions and 316 deletions

View File

@ -834,21 +834,11 @@ begin //maybe increase buffer size by one?
zeroBuffer:= puint32(kalloc( disk^.sectorSize ));
memset(uint32(zeroBuffer), 0, disk^.sectorSize );
{while true do begin
if i > FATSize then break;
writestring('LOOP BEGIN: ');
writeintln(i);
writeintln(bootRecord^.rsvSectors);
writeintln(start);
writeintln(fatStart);
writeintln(FATSize);
console.redrawWindows;
disk^.writecallback(disk, fatStart + i, 1, zeroBuffer);
writestring('LOOP END: ');
writeintln(i);
console.redrawWindows;
i+=1;
end;}
// while true do begin
// if i > FATSize then break;
// disk^.writecallback(disk, fatStart + i, 1, zeroBuffer);
// i+=1;
// end;
kfree(buffer);
kfree(zeroBuffer);