public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1b0f4
)
trs80: fix swapping - bug in devhd handling of cylinder boundaries
author
Alan Cox
<alan@linux.intel.com>
Sat, 16 May 2015 00:30:51 +0000
(
01:30
+0100)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 16 May 2015 00:30:51 +0000
(
01:30
+0100)
Kernel/platform-trs80/devhd.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-trs80/devhd.c
b/Kernel/platform-trs80/devhd.c
index
7106415
..
069c405
100644
(file)
--- a/
Kernel/platform-trs80/devhd.c
+++ b/
Kernel/platform-trs80/devhd.c
@@
-144,8
+144,8
@@
int hd_transfer(uint8_t minor, bool is_read, uint8_t rawflag)
dptr += 256;
sector++;
/* Cheaper than divison! */
- if (sector == 3
3
) {
- sector =
1
;
+ if (sector == 3
2
) {
+ sector =
0
;
head++;
if (head == p->g.head) {
head = 0;