]> git.karo-electronics.de Git - linux-beck.git/commitdiff
microblaze: add a dummy pgprot_noncached
authorArnd Bergmann <arnd@arndb.de>
Fri, 1 May 2009 21:44:51 +0000 (21:44 +0000)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 May 2009 13:56:06 +0000 (15:56 +0200)
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>
arch/microblaze/include/asm/pgtable.h

index 4df31e46568e7649e43f69170604f5a28484bfc3..254fd4ba733b948eafede9d74d745a14fc81308d 100644 (file)
@@ -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)) })