summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/pci-dma_32.c
diff options
context:
space:
mode:
authorGlauber Costa2008-03-25 22:36:36 +0100
committerIngo Molnar2008-04-19 19:19:56 +0200
commit7c18341665917b493fa40eeb3c7ff6c1a5ac47db (patch)
treef027237e256fe89ca03b83f8eb32978560b092da /arch/x86/kernel/pci-dma_32.c
parentx86: align to clflush size (diff)
downloadkernel-qcow2-linux-7c18341665917b493fa40eeb3c7ff6c1a5ac47db.tar.gz
kernel-qcow2-linux-7c18341665917b493fa40eeb3c7ff6c1a5ac47db.tar.xz
kernel-qcow2-linux-7c18341665917b493fa40eeb3c7ff6c1a5ac47db.zip
x86: provide a bad_dma_address symbol for i386
It's initially 0, since we don't expect any DMA there. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/pci-dma_32.c')
-rw-r--r--arch/x86/kernel/pci-dma_32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-dma_32.c b/arch/x86/kernel/pci-dma_32.c
index 453b4bda2714..55ab3c874d8f 100644
--- a/arch/x86/kernel/pci-dma_32.c
+++ b/arch/x86/kernel/pci-dma_32.c
@@ -14,6 +14,10 @@
#include <linux/module.h>
#include <asm/io.h>
+/* For i386, we make it point to the NULL address */
+dma_addr_t bad_dma_address __read_mostly = 0x0;
+EXPORT_SYMBOL(bad_dma_address);
+
struct dma_coherent_mem {
void *virt_base;
u32 device_base;