Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91022
b: refs/heads/master
c: 85c246e
h: refs/heads/master
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 19, 2008
1 parent 64f70c2 commit e445527
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 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: d741bde26dc3444eaeb269051d3f0b623b24de13
refs/heads/master: 85c246ee16fe00bf7bf9e7ff09a5d17d9a83cf71
11 changes: 8 additions & 3 deletions trunk/arch/x86/kernel/pci-base_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static int pci32_map_error(dma_addr_t dma_addr)
return 0;
}

static const struct dma_mapping_ops pci32_dma_ops = {
const struct dma_mapping_ops pci32_dma_ops = {
.map_single = pci32_map_single,
.unmap_single = NULL,
.map_sg = pci32_dma_map_sg,
Expand All @@ -51,5 +51,10 @@ static const struct dma_mapping_ops pci32_dma_ops = {
.mapping_error = pci32_map_error,
};

const struct dma_mapping_ops *dma_ops = &pci32_dma_ops;
EXPORT_SYMBOL(dma_ops);
/* this is temporary */
int __init no_iommu_init(void)
{
dma_ops = &pci32_dma_ops;
return 0;
}
fs_initcall(no_iommu_init);
3 changes: 3 additions & 0 deletions trunk/arch/x86/kernel/pci-dma.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include <linux/dma-mapping.h>

const struct dma_mapping_ops *dma_ops;
EXPORT_SYMBOL(dma_ops);

int dma_set_mask(struct device *dev, u64 mask)
{
if (!dev->dma_mask || !dma_supported(dev, mask))
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@
#include <asm/numa.h>
#include <asm/cacheflush.h>

const struct dma_mapping_ops *dma_ops;
EXPORT_SYMBOL(dma_ops);

static unsigned long dma_reserve __initdata;

DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
Expand Down

0 comments on commit e445527

Please sign in to comment.