From b2e8290306b67db940261136eb798e849129936f Mon Sep 17 00:00:00 2001 From: Malo Lecomte Date: Thu, 29 Jul 2021 03:57:05 +0200 Subject: [PATCH] fix(atapi): fix size in send_packet --- k/atapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k/atapi.c b/k/atapi.c index aed6531..f05155a 100644 --- a/k/atapi.c +++ b/k/atapi.c @@ -132,7 +132,7 @@ void *read_block(size_t lba) pkt.lba_hi = (lba >> 0x18) & 0xff; 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 uint16_t *buf = (uint16_t *)block;