Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91010
b: refs/heads/master
c: 7c18341
h: refs/heads/master
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 19, 2008
1 parent a995f8d commit 0ba2c29
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b48ee7135230ac43b6820d59a784ac0bd51ae552
refs/heads/master: 7c18341665917b493fa40eeb3c7ff6c1a5ac47db
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/pci-dma_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-x86/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <asm/io.h>
#include <asm/swiotlb.h>

extern dma_addr_t bad_dma_address;

struct dma_mapping_ops {
int (*mapping_error)(dma_addr_t dma_addr);
void* (*alloc_coherent)(struct device *dev, size_t size,
Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-x86/dma-mapping_64.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef _X8664_DMA_MAPPING_H
#define _X8664_DMA_MAPPING_H 1

extern dma_addr_t bad_dma_address;
extern int iommu_merge;

static inline int dma_mapping_error(dma_addr_t dma_addr)
Expand Down

0 comments on commit 0ba2c29

Please sign in to comment.