mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
[FREELDR]
- Remove debug prints added in previous commit... svn path=/trunk/; revision=52527
This commit is contained in:
parent
8d25697873
commit
9c60ad5c59
1 changed files with 3 additions and 4 deletions
|
@ -87,7 +87,6 @@ static BOOLEAN PcDiskReadLogicalSectorsLBA(UCHAR DriveNumber, ULONGLONG SectorNu
|
||||||
Packet->Reserved = 0;
|
Packet->Reserved = 0;
|
||||||
Packet->LBABlockCount = (USHORT)SectorCount;
|
Packet->LBABlockCount = (USHORT)SectorCount;
|
||||||
ASSERT(Packet->LBABlockCount == SectorCount);
|
ASSERT(Packet->LBABlockCount == SectorCount);
|
||||||
DbgPrint("here\n");
|
|
||||||
Packet->TransferBufferOffset = ((ULONG_PTR)Buffer) & 0x0F;
|
Packet->TransferBufferOffset = ((ULONG_PTR)Buffer) & 0x0F;
|
||||||
Packet->TransferBufferSegment = (USHORT)(((ULONG_PTR)Buffer) >> 4);
|
Packet->TransferBufferSegment = (USHORT)(((ULONG_PTR)Buffer) >> 4);
|
||||||
Packet->LBAStartBlock = SectorNumber;
|
Packet->LBAStartBlock = SectorNumber;
|
||||||
|
@ -103,17 +102,17 @@ static BOOLEAN PcDiskReadLogicalSectorsLBA(UCHAR DriveNumber, ULONGLONG SectorNu
|
||||||
|
|
||||||
// Retry 3 times
|
// Retry 3 times
|
||||||
for (RetryCount=0; RetryCount<3; RetryCount++)
|
for (RetryCount=0; RetryCount<3; RetryCount++)
|
||||||
{DPRINTM(DPRINT_DISK, "retry\n");
|
{
|
||||||
Int386(0x13, &RegsIn, &RegsOut);
|
Int386(0x13, &RegsIn, &RegsOut);
|
||||||
|
|
||||||
// If it worked return TRUE
|
// If it worked return TRUE
|
||||||
if (INT386_SUCCESS(RegsOut))
|
if (INT386_SUCCESS(RegsOut))
|
||||||
{DPRINTM(DPRINT_DISK, "PcDiskReadLogicalSectorsLBA() success\n");
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
// If it was a corrected ECC error then the data is still good
|
// If it was a corrected ECC error then the data is still good
|
||||||
else if (RegsOut.b.ah == 0x11)
|
else if (RegsOut.b.ah == 0x11)
|
||||||
{DPRINTM(DPRINT_DISK, "PcDiskReadLogicalSectorsLBA() success\n");
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
// If it failed the do the next retry
|
// If it failed the do the next retry
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue