public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd26434
)
trs80: fix silly bug in devhd - 256 byte sectors so we want 2,+128
author
Alan Cox
<alan@linux.intel.com>
Tue, 6 Jan 2015 23:05:50 +0000
(23:05 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Tue, 6 Jan 2015 23:05:50 +0000
(23:05 +0000)
Kernel/platform-trs80/devhd.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-trs80/devhd.c
b/Kernel/platform-trs80/devhd.c
index
4c35e11
..
c46bfed
100644
(file)
--- 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;