From 51499998f4b6f0462a6e955d058ad19fcd38ad2d Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Mon, 13 Aug 2018 22:07:14 -0400 Subject: [PATCH] coco2cart: bug: sdc driver still not returning no of bytes read/writen With this fix it boots again on the CoCo2 w/ SDC --- Kernel/platform-coco2cart/devsdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/platform-coco2cart/devsdc.c b/Kernel/platform-coco2cart/devsdc.c index dbfe2e17..ee8cf44b 100644 --- a/Kernel/platform-coco2cart/devsdc.c +++ b/Kernel/platform-coco2cart/devsdc.c @@ -58,7 +58,7 @@ typedef void (*sdc_transfer_function_t)( unsigned char *addr); /* blkdev method: transfer sectors */ -static uint8_t sdc_transfer(uint8_t minor, bool is_read, uint8_t rawflag) +static uint16_t sdc_transfer(uint8_t minor, bool is_read, uint8_t rawflag) { uint8_t nb = 0; uint32_t lba; /* holds 32 bit lsn */ -- 2.34.1