public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77ec456
)
tgl6502/devrd: Remember to round the block offset off
author
Alan Cox
<alan@linux.intel.com>
Sat, 17 Jan 2015 00:50:06 +0000
(
00:50
+0000)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 17 Jan 2015 00:50:06 +0000
(
00:50
+0000)
Otherwise end end up copying crap around. With this applied /init is loaded
into memory correctly
Kernel/platform-tgl6502/devrd.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-tgl6502/devrd.c
b/Kernel/platform-tgl6502/devrd.c
index
8766ede
..
da49b94
100644
(file)
--- a/
Kernel/platform-tgl6502/devrd.c
+++ b/
Kernel/platform-tgl6502/devrd.c
@@
-45,7
+45,7
@@
static int rd_transfer(bool is_read, uint8_t rawflag)
while (ct < block_xfer) {
/* Offset of block within an 8K bank (high byte) */
- romd_roff = (block << 9);
+ romd_roff = (block << 9)
& 0x1FFF
;
/* 8K block we need to select */
romd_rmap = 0x48 + (block >> 4);
/* Map it over a page we are not copying into */
@@
-57,6
+57,8
@@
static int rd_transfer(bool is_read, uint8_t rawflag)
romd_bank = 1;
}
irq = di();
+// kprintf("RD: map %d, roff %x bank %d dptr %x\n",
+// romd_rmap, romd_roff, romd_bank, dptr);
if (is_read) {
rd_copyin(dptr);
}