/* * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch> * Copyright (C) 2009 Wind River Systems Inc * * Based on asm/pgtable-32.h from mips which is: * * Copyright (C) 1994, 95, 96, 97, 98, 99, 2000, 2003 Ralf Baechle * Copyright (C) 1999, 2000, 2001 Silicon Graphics, Inc. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details.
*/
/* * ZERO_PAGE is a global shared page that is always zero: used * for zero-mapped memory areas etc..
*/ externunsignedlong empty_zero_page[PAGE_SIZE / sizeof(unsignedlong)]; #define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page))
/* * (pmds are folded into puds so this doesn't get actually called, * but the define is needed for a generic inline function.)
*/ staticinlinevoid set_pmd(pmd_t *pmdptr, pmd_t pmdval)
{
*pmdptr = pmdval;
}
/* * The following only work if pte_present() is true. * Undefined behaviour if not..
*/ staticinline pte_t pte_wrprotect(pte_t pte)
{
pte_val(pte) &= ~_PAGE_WRITE; return pte;
}
/* * Conversion functions: convert a page and protection to a page entry, * and a page entry and page directory to the page they refer to.
*/ #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) #define pmd_pfn(pmd) (pmd_phys(pmd) >> PAGE_SHIFT) #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
#define __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS staticinlineint ptep_set_access_flags(struct vm_area_struct *vma, unsignedlong address, pte_t *ptep,
pte_t entry, int dirty)
{ if (!pte_same(*ptep, entry))
set_ptes(vma->vm_mm, address, ptep, entry, 1); /* * update_mmu_cache will unconditionally execute, handling both * the case that the PTE changed and the spurious fault case.
*/ returntrue;
}
#endif/* _ASM_NIOS2_PGTABLE_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.