summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin LaHaise <bcrl@redhat.com>2002-06-10 05:25:24 -0700
committerBenjamin LaHaise <bcrl@redhat.com>2002-06-10 05:25:24 -0700
commit726f11b145d4ba3ba61dbe01fb518784f7e1fadd (patch)
treea5dad70a703372926cf0cf2e0feebd7950a5f8eb /include
parent7ef17402b2722570f6a64415a6657807f7a412ff (diff)
[PATCH] pci dma patch rediffed for 2.5.21
This is the same patch as was posted against 2.4.19-pre10: pci_map_page was missing a cast on x86, which resulted in the high 32 bits of an address being silently discarded. This patch fixes that by casting the page number before multiplying it out.
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-i386/pci.h b/include/asm-i386/pci.h
index 57100de26c0c..9563932275ac 100644
--- a/include/asm-i386/pci.h
+++ b/include/asm-i386/pci.h
@@ -109,7 +109,7 @@ static inline dma_addr_t pci_map_page(struct pci_dev *hwdev, struct page *page,
if (direction == PCI_DMA_NONE)
BUG();
- return (page - mem_map) * PAGE_SIZE + offset;
+ return (dma_addr_t)(page - mem_map) * PAGE_SIZE + offset;
}
static inline void pci_unmap_page(struct pci_dev *hwdev, dma_addr_t dma_address,