--- zzzz-none-000/linux-2.4.17/include/asm-sh/pgtable.h 2001-11-11 18:20:21.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/include/asm-sh/pgtable.h 2004-11-24 13:21:34.000000000 +0000 @@ -237,6 +237,19 @@ static inline pte_t pte_mkwrite(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) | _PAGE_RW)); return pte; } /* + * Macro and implementation to make a page protection as uncachable. + */ +#define pgprot_noncached pgprot_noncached + +static inline pgprot_t pgprot_noncached(pgprot_t _prot) +{ + unsigned long prot = pgprot_val(_prot); + + prot &= ~_PAGE_CACHABLE; + return __pgprot(prot); +} + +/* * Conversion functions: convert a page and protection to a page entry, * and a page entry and page directory to the page they refer to. *