diff options
author | David S. Miller <davem@davemloft.net> | 2005-04-21 21:41:33 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-04-21 21:41:33 -0700 |
commit | d7be828e03969ea7f922f299acb8daa0d8ce7006 (patch) | |
tree | 4c664d8a15dc9dc935cc6e181e727cfdc5d60302 /include/asm-sparc64 | |
parent | 1cff94c6fecdc54d6f022ae5a22888f8272804a1 (diff) | |
download | kernel_samsung_tuna-d7be828e03969ea7f922f299acb8daa0d8ce7006.zip kernel_samsung_tuna-d7be828e03969ea7f922f299acb8daa0d8ce7006.tar.gz kernel_samsung_tuna-d7be828e03969ea7f922f299acb8daa0d8ce7006.tar.bz2 |
[SPARC64]: Provide a pgprot_noncached() implementation.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r-- | include/asm-sparc64/pgtable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-sparc64/pgtable.h b/include/asm-sparc64/pgtable.h index af9bf17..ae2cd5b 100644 --- a/include/asm-sparc64/pgtable.h +++ b/include/asm-sparc64/pgtable.h @@ -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. |