git-svn-id: https://spexeah.com:8443/svn/Asuro@320 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
2c90943603
commit
ad764964fd
BIN
bin/kernel.bin
BIN
bin/kernel.bin
Binary file not shown.
Binary file not shown.
BIN
lib/kernel.ppu
BIN
lib/kernel.ppu
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/libpsystem.a
BIN
lib/libpsystem.a
Binary file not shown.
@ -363,13 +363,13 @@ begin
|
|||||||
cmdfis^.count_low := count and $FF;
|
cmdfis^.count_low := count and $FF;
|
||||||
cmdfis^.count_high:= (count shr 8) and $FF;
|
cmdfis^.count_high:= (count shr 8) and $FF;
|
||||||
|
|
||||||
while (port^.tfd and $88) and spin < 1000000 do begin
|
{while (port^.tfd and $88) and (spin < 1000000) do begin
|
||||||
spin += 1;
|
spin += 1;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if spin = 1000000 then begin
|
if spin = 1000000 then begin
|
||||||
console.writestringln('AHCI controller: port is hung!');
|
console.writestringln('AHCI controller: port is hung!');
|
||||||
exit(false);
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
port^.ci := 1 shl slot;
|
port^.ci := 1 shl slot;
|
||||||
@ -378,16 +378,16 @@ begin
|
|||||||
if(port^.ci and (1 shl slot)) = 0 then break;
|
if(port^.ci and (1 shl slot)) = 0 then break;
|
||||||
if(port^.istat and (1 shl 30)) then begin
|
if(port^.istat and (1 shl 30)) then begin
|
||||||
console.writestringln('AHCI controller: Disk read error!');
|
console.writestringln('AHCI controller: Disk read error!');
|
||||||
exit(false);
|
exit;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if(port^.istat and (1 shl 30)) then begin
|
if(port^.istat and (1 shl 30)) then begin
|
||||||
console.writestringln('AHCI controller: Disk read error!');
|
console.writestringln('AHCI controller: Disk read error!');
|
||||||
exit(false);
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
exit(true);
|
exit;}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function write(port : uint8; startl : uint32; starth : uint32; count : uint32; buf : PuInt16) : uint32;
|
function write(port : uint8; startl : uint32; starth : uint32; count : uint32; buf : PuInt16) : uint32;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user