pgtable.h (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) pgtable.h (2f0584f3f4bd60bcc8735172981fb0bff86e74e0)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * include/asm-xtensa/pgtable.h
4 *
5 * Copyright (C) 2001 - 2013 Tensilica Inc.
6 */
7
8#ifndef _XTENSA_PGTABLE_H

--- 248 unchanged lines hidden (view full) ---

257static inline pte_t pte_mkclean(pte_t pte)
258 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; }
259static inline pte_t pte_mkold(pte_t pte)
260 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; }
261static inline pte_t pte_mkdirty(pte_t pte)
262 { pte_val(pte) |= _PAGE_DIRTY; return pte; }
263static inline pte_t pte_mkyoung(pte_t pte)
264 { pte_val(pte) |= _PAGE_ACCESSED; return pte; }
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * include/asm-xtensa/pgtable.h
4 *
5 * Copyright (C) 2001 - 2013 Tensilica Inc.
6 */
7
8#ifndef _XTENSA_PGTABLE_H

--- 248 unchanged lines hidden (view full) ---

257static inline pte_t pte_mkclean(pte_t pte)
258 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; }
259static inline pte_t pte_mkold(pte_t pte)
260 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; }
261static inline pte_t pte_mkdirty(pte_t pte)
262 { pte_val(pte) |= _PAGE_DIRTY; return pte; }
263static inline pte_t pte_mkyoung(pte_t pte)
264 { pte_val(pte) |= _PAGE_ACCESSED; return pte; }
265static inline pte_t pte_mkwrite(pte_t pte)
265static inline pte_t pte_mkwrite_novma(pte_t pte)
266 { pte_val(pte) |= _PAGE_WRITABLE; return pte; }
267
268#define pgprot_noncached(prot) \
269 ((__pgprot((pgprot_val(prot) & ~_PAGE_CA_MASK) | \
270 _PAGE_CA_BYPASS)))
271
272/*
273 * Conversion functions: convert a page and protection to a page entry,

--- 158 unchanged lines hidden ---
266 { pte_val(pte) |= _PAGE_WRITABLE; return pte; }
267
268#define pgprot_noncached(prot) \
269 ((__pgprot((pgprot_val(prot) & ~_PAGE_CA_MASK) | \
270 _PAGE_CA_BYPASS)))
271
272/*
273 * Conversion functions: convert a page and protection to a page entry,

--- 158 unchanged lines hidden ---