|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] IO DMA isn't bound by physical address, but it is by mac
ChangeSet 1.1658, 2005/06/03 08:55:30+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx
IO DMA isn't bound by physical address, but it is by machine address.
Signed-off-by: Scott Parish <srparish@xxxxxxxxxx>
dma-mapping.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/dma-mapping.h
b/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/dma-mapping.h
--- a/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/dma-mapping.h
2005-06-03 04:02:49 -04:00
+++ b/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/dma-mapping.h
2005-06-03 04:02:49 -04:00
@@ -39,11 +39,11 @@
if (direction == DMA_NONE)
out_of_line_bug();
- addr = virt_to_phys(ptr);
+ addr = virt_to_machine(ptr);
if ((addr+size) & ~*hwdev->dma_mask)
out_of_line_bug();
- return phys_to_machine(addr);
+ return addr;
}
static inline void dma_unmap_single(struct device *hwdev, dma_addr_t dma_addr,
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] IO DMA isn't bound by physical address, but it is by machine address.,
BitKeeper Bot <=
|
Previous by Date: |
[Xen-changelog] domain.h, xenmem.c, mkbuildtree, slab.h, setup.c:, BitKeeper Bot |
Next by Date: |
[Xen-changelog] Ensure that _PAGE_GLOBAL bit is never set in any pagetable if the CPU, BitKeeper Bot |
Previous by Thread: |
[Xen-changelog] domain.h, xenmem.c, mkbuildtree, slab.h, setup.c:, BitKeeper Bot |
Next by Thread: |
[Xen-changelog] Ensure that _PAGE_GLOBAL bit is never set in any pagetable if the CPU, BitKeeper Bot |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|
|
|