X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/3b6a05fc894d0c1a3d431045ee5a53955ba093a0..a362b4b2c4abbf2da6ec14cb44a8685a81107f6a:/lunaix-os/hal/ahci/ata.c diff --git a/lunaix-os/hal/ahci/ata.c b/lunaix-os/hal/ahci/ata.c index 877ed86..de59eb9 100644 --- a/lunaix-os/hal/ahci/ata.c +++ b/lunaix-os/hal/ahci/ata.c @@ -9,7 +9,7 @@ void sata_read_error(struct hba_port* port) { - uint32_t tfd = port->regs[HBA_RPxTFD]; + u32_t tfd = port->regs[HBA_RPxTFD]; port->device->last_result.sense_key = (tfd & 0xf000) >> 12; port->device->last_result.error = (tfd & 0x0f00) >> 8; port->device->last_result.status = tfd & 0x00ff;