Skip to content

Commit

Permalink
microblaze: add a dummy pgprot_noncached
Browse files Browse the repository at this point in the history
Some device drivers call this, so add a macro
that pretends to do this. Since there is no
MMU support, it won't actually result in an
uncached mapping, though.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Arnd Bergmann authored and Michal Simek committed May 21, 2009
1 parent 6b43742 commit 0c60155
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/microblaze/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#define PAGE_READONLY __pgprot(0) /* these mean nothing to non MMU */
#define PAGE_KERNEL __pgprot(0) /* these mean nothing to non MMU */

#define pgprot_noncached(x) (x)

#define __swp_type(x) (0)
#define __swp_offset(x) (0)
#define __swp_entry(typ, off) ((swp_entry_t) { ((typ) | ((off) << 7)) })
Expand Down

0 comments on commit 0c60155

Please sign in to comment.