pgtable.h (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) pgtable.h (2f0584f3f4bd60bcc8735172981fb0bff86e74e0)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Page table support for the Hexagon architecture
4 *
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
6 */
7
8#ifndef _ASM_PGTABLE_H

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

295/* pte_wrprotect - mark page as not writable */
296static inline pte_t pte_wrprotect(pte_t pte)
297{
298 pte_val(pte) &= ~_PAGE_WRITE;
299 return pte;
300}
301
302/* pte_mkwrite - mark page as writable */
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Page table support for the Hexagon architecture
4 *
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
6 */
7
8#ifndef _ASM_PGTABLE_H

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

295/* pte_wrprotect - mark page as not writable */
296static inline pte_t pte_wrprotect(pte_t pte)
297{
298 pte_val(pte) &= ~_PAGE_WRITE;
299 return pte;
300}
301
302/* pte_mkwrite - mark page as writable */
303static inline pte_t pte_mkwrite(pte_t pte)
303static inline pte_t pte_mkwrite_novma(pte_t pte)
304{
305 pte_val(pte) |= _PAGE_WRITE;
306 return pte;
307}
308
309/* pte_mkexec - mark PTE as executable */
310static inline pte_t pte_mkexec(pte_t pte)
311{

--- 106 unchanged lines hidden ---
304{
305 pte_val(pte) |= _PAGE_WRITE;
306 return pte;
307}
308
309/* pte_mkexec - mark PTE as executable */
310static inline pte_t pte_mkexec(pte_t pte)
311{

--- 106 unchanged lines hidden ---