public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
405a6b0
)
z80pack: devfd updates
author
Alan Cox
<alan@etchedpixels.co.uk>
Sun, 23 Nov 2014 00:38:25 +0000
(
00:38
+0000)
committer
Alan Cox
<alan@etchedpixels.co.uk>
Sun, 23 Nov 2014 00:38:25 +0000
(
00:38
+0000)
Kernel/dev/z80pack/devfd.c
patch
|
blob
|
history
diff --git
a/Kernel/dev/z80pack/devfd.c
b/Kernel/dev/z80pack/devfd.c
index
0a00f29
..
3a9fae2
100644
(file)
--- a/
Kernel/dev/z80pack/devfd.c
+++ b/
Kernel/dev/z80pack/devfd.c
@@
-114,11
+114,16
@@
static int fd_transfer(bool is_read, uint8_t minor, uint8_t rawflag)
fd_dmal = dptr & 0xFF;
fd_dmah = dptr >> 8;
+#ifdef CONFIG_SWAP_ONLY
+ /* No banking problems in swap only mode */
+ fd_cmd = 1 - is_read;
+#else
if (map == 0)
fd_cmd = 1 - is_read;
else /* RAW I/O - switch to user bank and issue command via
a helper in common */
fd_bankcmd(1 - is_read, page);
+#endif
st = fd_status;
/* Real disks would need retries */