projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
539da68
)
Remove second pciToDma translation on current PRD address pointer b/c
author
Andrew Schultz
<alschult@umich.edu>
Sat, 10 Jul 2004 02:32:27 +0000
(22:32 -0400)
committer
Andrew Schultz
<alschult@umich.edu>
Sat, 10 Jul 2004 02:32:27 +0000
(22:32 -0400)
second translation (which is superfluous) doesn't work properly when
system memory is higher than 128MB
--HG--
extra : convert_revision :
9cdf6925689d376953b1aa071bcd1e2f06419202
dev/ide_disk.cc
patch
|
blob
|
history
diff --git
a/dev/ide_disk.cc
b/dev/ide_disk.cc
index ee21feaeae1853ebbcdc98b120824519459f5d25..99724f07788c1c5f7b5cde237ccf465274da6319 100644
(file)
--- a/
dev/ide_disk.cc
+++ b/
dev/ide_disk.cc
@@
-341,8
+341,8
@@
IdeDisk::dmaPrdReadDone()
curPrd.getByteCount(), (cmdBytesLeft/SectorSize),
curPrd.getEOT(), curSector);
- //
make sure the new curPrdAddr is properly translated from PCI to system
- curPrdAddr =
pciToDma(curPrdAddr + sizeof(PrdEntry_t)
);
+ //
the prd pointer has already been translated, so just do an increment
+ curPrdAddr =
curPrdAddr + sizeof(PrdEntry_t
);
if (dmaRead)
doDmaRead();