pgtable.h (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) | pgtable.h (2f0584f3f4bd60bcc8735172981fb0bff86e74e0) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 4 * Copyright (C) 2008-2009 PetaLogix 5 * Copyright (C) 2006 Atmark Techno, Inc. 6 */ 7 8#ifndef _ASM_MICROBLAZE_PGTABLE_H --- 252 unchanged lines hidden (view full) --- 261 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HWWRITE); return pte; } 262static inline pte_t pte_mkold(pte_t pte) \ 263 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } 264 265static inline pte_t pte_mkread(pte_t pte) \ 266 { pte_val(pte) |= _PAGE_USER; return pte; } 267static inline pte_t pte_mkexec(pte_t pte) \ 268 { pte_val(pte) |= _PAGE_USER | _PAGE_EXEC; return pte; } | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 4 * Copyright (C) 2008-2009 PetaLogix 5 * Copyright (C) 2006 Atmark Techno, Inc. 6 */ 7 8#ifndef _ASM_MICROBLAZE_PGTABLE_H --- 252 unchanged lines hidden (view full) --- 261 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HWWRITE); return pte; } 262static inline pte_t pte_mkold(pte_t pte) \ 263 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } 264 265static inline pte_t pte_mkread(pte_t pte) \ 266 { pte_val(pte) |= _PAGE_USER; return pte; } 267static inline pte_t pte_mkexec(pte_t pte) \ 268 { pte_val(pte) |= _PAGE_USER | _PAGE_EXEC; return pte; } |
269static inline pte_t pte_mkwrite(pte_t pte) \ | 269static inline pte_t pte_mkwrite_novma(pte_t pte) \ |
270 { pte_val(pte) |= _PAGE_RW; return pte; } 271static inline pte_t pte_mkdirty(pte_t pte) \ 272 { pte_val(pte) |= _PAGE_DIRTY; return pte; } 273static inline pte_t pte_mkyoung(pte_t pte) \ 274 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } 275 276/* 277 * Conversion functions: convert a page and protection to a page entry, --- 185 unchanged lines hidden --- | 270 { pte_val(pte) |= _PAGE_RW; return pte; } 271static inline pte_t pte_mkdirty(pte_t pte) \ 272 { pte_val(pte) |= _PAGE_DIRTY; return pte; } 273static inline pte_t pte_mkyoung(pte_t pte) \ 274 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } 275 276/* 277 * Conversion functions: convert a page and protection to a page entry, --- 185 unchanged lines hidden --- |