From: Alan Cox Date: Tue, 6 Jan 2015 23:05:50 +0000 (+0000) Subject: trs80: fix silly bug in devhd - 256 byte sectors so we want 2,+128 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f04d713db5cc0c1e27d56ef936d95e3166ea86c0;p=FUZIX.git trs80: fix silly bug in devhd - 256 byte sectors so we want 2,+128 --- diff --git a/Kernel/platform-trs80/devhd.c b/Kernel/platform-trs80/devhd.c index 4c35e11a..c46bfed3 100644 --- a/Kernel/platform-trs80/devhd.c +++ b/Kernel/platform-trs80/devhd.c @@ -247,7 +247,7 @@ void hd_probe(void) unsigned int i; uint8_t *d = tmpbuf(); /* Second half of second block */ - struct minipart *p = (struct minipart *)(d + 384); + struct minipart *p = (struct minipart *)(d + 128); for (dev = 0; dev < 4; dev++) { hd_sdh = 0x80 | (dev << 3); hd_cmd = HDCMD_RESTORE | RATE_4MS; @@ -257,7 +257,7 @@ void hd_probe(void) } hd_seccnt = 1; hd_sdh = 0x80 | (dev << 3); - hd_secnum = 1; + hd_secnum = 2; hd_cyllo = 0; hd_cylhi = 0; hd_cmd = HDCMD_READ;