From: Alan Cox Date: Thu, 23 Nov 2017 02:26:34 +0000 (+0000) Subject: v65c816: Fix hd driver to return correct value X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c4c3a967084728e73cf89e2f3480421e4f8a4573;p=FUZIX.git v65c816: Fix hd driver to return correct value --- diff --git a/Kernel/platform-v65c816/devhd.c b/Kernel/platform-v65c816/devhd.c index 68e74f56..0a730d89 100644 --- a/Kernel/platform-v65c816/devhd.c +++ b/Kernel/platform-v65c816/devhd.c @@ -54,7 +54,7 @@ static int hd_transfer(uint8_t minor, bool is_read, uint8_t rawflag) udata.u_block++; dptr += 512; } - return nb; + return nb << BLKSHIFT; } int hd_open(uint8_t minor, uint16_t flag)