[SPARC64]: Provide a pgprot_noncached() implementation.
authorDavid S. Miller <davem@davemloft.net>
Fri, 22 Apr 2005 04:41:33 +0000 (21:41 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Apr 2005 04:41:33 +0000 (21:41 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-sparc64/pgtable.h

index af9bf175a223cf44310293287d50302e0fd3f9e9..ae2cd5b09a7cc523e96640d805eb97e299da8907 100644 (file)
@@ -416,6 +416,11 @@ extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from,
                               unsigned long pfn,
                               unsigned long size, pgprot_t prot);
 
+/* Clear virtual and physical cachability, set side-effect bit.  */
+#define pgprot_noncached(prot) \
+       (__pgprot((pgprot_val(prot) & ~(_PAGE_CP | _PAGE_CV)) | \
+        _PAGE_E))
+
 /*
  * For sparc32&64, the pfn in io_remap_pfn_range() carries <iospace> in
  * its high 4 bits.  These macros/functions put it there or get it from there.