PCI-IDE driver fallback to polling for PCI-native controllers
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m55s

This commit is contained in:
2026-03-15 12:52:29 +01:00
parent 5b432b2b01
commit c784264dc8
4 changed files with 111 additions and 103 deletions

View File

@@ -30,14 +30,11 @@ static int device_probe_partitions_dos (struct proc* proc, struct reschedule_ctx
[XDRV_WRITE] = &partdrv_write,
};
DEBUG ("1\n");
spin_lock (&device->lock, &fd);
device_op (device, XDRV_GET_SECTOR_SIZE, proc, rctx, &fd, &sector_size);
DEBUG ("2\n");
int ret = device_op (device, XDRV_READ, proc, rctx, &fd, &sector, &sector_count, &mbr);
DEBUG ("3\n");
if (ret < 0) {
spin_unlock (&device->lock, fd);
@@ -48,7 +45,6 @@ static int device_probe_partitions_dos (struct proc* proc, struct reschedule_ctx
spin_unlock (&device->lock, fd);
return -ST_PARTITION_ERROR;
}
DEBUG ("4\n");
for (size_t i = 0; i < lengthof (mbr.ptes); i++) {
struct dos_pte* pte = &mbr.ptes[i];
@@ -64,11 +60,9 @@ static int device_probe_partitions_dos (struct proc* proc, struct reschedule_ctx
snprintf (key, sizeof (key), "%sp%zu", device->key, i);
device_create (key, ops, lengthof (ops), &partdrv_init, &partdrv_fini, &init, proc, rctx);
DEBUG ("5\n");
}
spin_unlock (&device->lock, fd);
DEBUG ("6\n");
return ST_OK;
}