Messages in this thread Patch in this message | | | Subject | [PATCH] ppc32 implementation of ptep_set_access_flags | From | Benjamin Herrenschmidt <> | Date | Wed, 26 May 2004 17:11:31 +1000 |
| |
Here's the ppc32 implementation of ptep_set_access_flags:
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
===== include/asm-ppc/pgtable.h 1.32 vs edited ===== --- 1.32/include/asm-ppc/pgtable.h 2004-05-23 07:56:24 +10:00 +++ edited/include/asm-ppc/pgtable.h 2004-05-26 17:07:35 +10:00 @@ -548,6 +548,16 @@ pte_update(ptep, 0, _PAGE_DIRTY); } +#define __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS +static inline void __ptep_set_access_flags(pte_t *ptep, pte_t entry, int dirty) +{ + unsigned long bits = pte_val(entry) & + (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW); + pte_update(ptep, 0, bits); +} +#define ptep_set_access_flags(__vma, __address, __ptep, __entry, __dirty) \ + __ptep_set_access_flags(__ptep, __entry, __dirty) + /* * Macro to mark a page protection value as "uncacheable". */
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |