projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
058f5fd
)
CRIS: Correct pfn_pte to make it possible to ioremap uncached addresses.
author
Jesper Nilsson
<jesper.nilsson@axis.com>
Mon, 21 Jan 2008 14:49:43 +0000
(15:49 +0100)
committer
Jesper Nilsson
<jesper.nilsson@axis.com>
Fri, 8 Feb 2008 10:06:32 +0000
(11:06 +0100)
include/asm-cris/pgtable.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-cris/pgtable.h
b/include/asm-cris/pgtable.h
index 417f71116215d5c80ef84cd5ee828070b4f785cb..a2607575681bde237c1ccc5b58e72ba2238dc506 100644
(file)
--- 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))