disk: Fail disk_read_sectors() on any error code

This commit is contained in:
mintsuki 2022-01-02 12:34:55 +01:00
parent 6fad120218
commit cc8528e2d0
1 changed files with 1 additions and 8 deletions

View File

@ -113,14 +113,7 @@ bool disk_read_sectors(struct volume *volume, void *buf, uint64_t block, size_t
rm_int(0x13, &r, &r);
if (r.eflags & EFLAGS_CF) {
int ah = (r.eax >> 8) & 0xff;
switch (ah) {
case 0x0c:
return false;
default:
panic(false, "Disk error %x. Drive %x, LBA %x.",
ah, volume->drive, dap.lba);
}
return false;
}
if (buf != NULL)