Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362835
b: refs/heads/master
c: a4279e6
h: refs/heads/master
i:
  362833: 72c22c7
  362831: ab4adb8
v: v3
  • Loading branch information
Li, Zhen-Hua authored and Tony Luck committed Mar 19, 2013
1 parent 6d6c2f0 commit f751f3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: deb60015096102f9842b631dcad98a05001268e9
refs/heads/master: a4279e6202bbd08ac6038234571ac639c98879cf
14 changes: 9 additions & 5 deletions trunk/arch/ia64/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@
#include <asm/meminit.h>

static inline void __iomem *
__ioremap (unsigned long phys_addr)
__ioremap_uc(unsigned long phys_addr)
{
return (void __iomem *) (__IA64_UNCACHED_OFFSET | phys_addr);
}

void __iomem *
early_ioremap (unsigned long phys_addr, unsigned long size)
{
return __ioremap(phys_addr);
u64 attr;
attr = kern_mem_attribute(phys_addr, size);
if (attr & EFI_MEMORY_WB)
return (void __iomem *) phys_to_virt(phys_addr);
return __ioremap_uc(phys_addr);
}

void __iomem *
Expand All @@ -47,7 +51,7 @@ ioremap (unsigned long phys_addr, unsigned long size)
if (attr & EFI_MEMORY_WB)
return (void __iomem *) phys_to_virt(phys_addr);
else if (attr & EFI_MEMORY_UC)
return __ioremap(phys_addr);
return __ioremap_uc(phys_addr);

/*
* Some chipsets don't support UC access to memory. If
Expand Down Expand Up @@ -93,7 +97,7 @@ ioremap (unsigned long phys_addr, unsigned long size)
return (void __iomem *) (offset + (char __iomem *)addr);
}

return __ioremap(phys_addr);
return __ioremap_uc(phys_addr);
}
EXPORT_SYMBOL(ioremap);

Expand All @@ -103,7 +107,7 @@ ioremap_nocache (unsigned long phys_addr, unsigned long size)
if (kern_mem_attribute(phys_addr, size) & EFI_MEMORY_WB)
return NULL;

return __ioremap(phys_addr);
return __ioremap_uc(phys_addr);
}
EXPORT_SYMBOL(ioremap_nocache);

Expand Down

0 comments on commit f751f3a

Please sign in to comment.