summaryrefslogtreecommitdiff
path: root/include/asm-cris
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2008-01-21 17:49:43 +0300
committerJesper Nilsson <jesper.nilsson@axis.com>2008-02-08 13:06:32 +0300
commit620cf2e44206bde8a7777e29658b3752675c066b (patch)
treecc459669991313fe3502e79c90a20c3df605662c /include/asm-cris
parent058f5fdfd9953e7f856285b72f1c652683d5d19b (diff)
downloadlinux-620cf2e44206bde8a7777e29658b3752675c066b.tar.xz
CRIS: Correct pfn_pte to make it possible to ioremap uncached addresses.
Diffstat (limited to 'include/asm-cris')
-rw-r--r--include/asm-cris/pgtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-cris/pgtable.h b/include/asm-cris/pgtable.h
index 417f71116215..a2607575681b 100644
--- a/include/asm-cris/pgtable.h
+++ b/include/asm-cris/pgtable.h
@@ -249,7 +249,7 @@ static inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address)
#define pte_unmap(pte) do { } while (0)
#define pte_unmap_nested(pte) do { } while (0)
#define pte_pfn(x) ((unsigned long)(__va((x).pte)) >> PAGE_SHIFT)
-#define pfn_pte(pfn, prot) __pte((__pa((pfn) << PAGE_SHIFT)) | pgprot_val(prot))
+#define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot))
#define pte_ERROR(e) \
printk("%s:%d: bad pte %p(%08lx).\n", __FILE__, __LINE__, &(e), pte_val(e))