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:
+209
-289
File diff suppressed because it is too large
Load Diff
@@ -834,21 +834,11 @@ begin //maybe increase buffer size by one?
|
|||||||
zeroBuffer:= puint32(kalloc( disk^.sectorSize ));
|
zeroBuffer:= puint32(kalloc( disk^.sectorSize ));
|
||||||
memset(uint32(zeroBuffer), 0, disk^.sectorSize );
|
memset(uint32(zeroBuffer), 0, disk^.sectorSize );
|
||||||
|
|
||||||
{while true do begin
|
// while true do begin
|
||||||
if i > FATSize then break;
|
// if i > FATSize then break;
|
||||||
writestring('LOOP BEGIN: ');
|
// disk^.writecallback(disk, fatStart + i, 1, zeroBuffer);
|
||||||
writeintln(i);
|
// i+=1;
|
||||||
writeintln(bootRecord^.rsvSectors);
|
// end;
|
||||||
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;}
|
|
||||||
|
|
||||||
kfree(buffer);
|
kfree(buffer);
|
||||||
kfree(zeroBuffer);
|
kfree(zeroBuffer);
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ uses
|
|||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
TControllerType = (ControllerIDE, ControllerUSB, ControllerAHCI, ControllerNET);
|
TControllerType = (ControllerIDE, ControllerUSB, ControllerAHCI, ControllerNET, ControllerRAM, rsvctr1, rsvctr2, rsvctr3);
|
||||||
TDirectory_Entry_Type = (directoryEntry, fileEntry, mountEntry);
|
TDirectory_Entry_Type = (directoryEntry, fileEntry, mountEntry);
|
||||||
PStorage_volume = ^TStorage_Volume;
|
PStorage_volume = ^TStorage_Volume;
|
||||||
PStorage_device = ^TStorage_Device;
|
PStorage_device = ^TStorage_Device;
|
||||||
|
|||||||
Reference in New Issue
Block a user