fix(atapi): fix size in send_packet
This commit is contained in:
parent
9618d0d55a
commit
b2e8290306
@ -132,7 +132,7 @@ void *read_block(size_t lba)
|
|||||||
pkt.lba_hi = (lba >> 0x18) & 0xff;
|
pkt.lba_hi = (lba >> 0x18) & 0xff;
|
||||||
pkt.transfer_length_lo = 1;
|
pkt.transfer_length_lo = 1;
|
||||||
|
|
||||||
send_packet(&pkt, a_drive.reg, PACKET_SZ);
|
send_packet(&pkt, a_drive.reg, CD_BLOCK_SZ);
|
||||||
|
|
||||||
// we can now read
|
// we can now read
|
||||||
uint16_t *buf = (uint16_t *)block;
|
uint16_t *buf = (uint16_t *)block;
|
||||||
|
Loading…
Reference in New Issue
Block a user