Skip to content

Commit

Permalink
CRIS: Correct pfn_pte to make it possible to ioremap uncached addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesper Nilsson committed Feb 8, 2008
1 parent 058f5fd commit 620cf2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-cris/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 620cf2e

Please sign in to comment.