Flatfs reading and writing files and directories done
This commit is contained in:
1 parent
f88a282893
commit
27177979a2
2 files changed
+108
-68
No files matched your search
@@ -340,7 +340,7 @@ begin
|
||||
console.writestringln('IDE (writePIO28) ERROR: Invalid LBA!');
|
||||
end;
|
||||
|
||||
push_trace('IDE.readPIO28.2');
|
||||
// push_trace('IDE.readPIO28.2');
|
||||
|
||||
//Add last 4 bits of LBA to device port
|
||||
if IDEDevices[drive].isMaster then begin
|
||||
@@ -352,7 +352,7 @@ begin
|
||||
device_select($F0 or ((LBA and $0F000000) shr 24)); //LBA primary slave
|
||||
end;
|
||||
|
||||
push_trace('IDE.readPIO28.3');
|
||||
// push_trace('IDE.readPIO28.3');
|
||||
|
||||
no_interrupt(device);
|
||||
port_write(ATA_REG_ERROR, 0);
|
||||
@@ -363,7 +363,7 @@ begin
|
||||
port_write(ATA_REG_LBA1, (LBA and $0000FF00) shr 8);
|
||||
port_write(ATA_REG_LBA2, (LBA and $00FF0000) shr 16);
|
||||
|
||||
push_trace('IDE.readPIO28.4');
|
||||
// push_trace('IDE.readPIO28.4');
|
||||
|
||||
//send read command
|
||||
port_write(ATA_REG_COMMAND, ATA_CMD_READ_PIO);
|
||||
@@ -381,7 +381,7 @@ begin
|
||||
i:= i + 2;
|
||||
end;
|
||||
|
||||
push_trace('IDE.readPIO28.5');
|
||||
// push_trace('IDE.readPIO28.5');
|
||||
end;
|
||||
|
||||
procedure writePIO28(drive : uint8; LBA : uint32; buffer : puint8);
|
||||
|
||||
+104
-64
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user