#ifdef CONFIG_SPARSEMEM_VMEMMAP /* *OnBook3ECPUs,thevmemmapiscurrentlymappedinthetophalfof *thevmallocspaceusingnormalpagetables,thoughthesizeof *pagesencodedinthePTEscanbedifferent
*/ int __meminit vmemmap_create_mapping(unsignedlong start, unsignedlong page_size, unsignedlong phys)
{ /* Create a PTE encoding without page size */ unsignedlong i, flags = _PAGE_PRESENT | _PAGE_ACCESSED |
_PAGE_KERNEL_RW;
/* PTEs only contain page size encodings up to 32M */
BUG_ON(mmu_psize_defs[mmu_vmemmap_psize].shift - 10 > 0xf);
/* Encode the size in the PTE */
flags |= (mmu_psize_defs[mmu_vmemmap_psize].shift - 10) << 8;
/* For each PTE for that area, map things. Note that we don't *incrementphysbecauseallPTEsareofthelargesizeand *thusmusthavethelowbitsclear
*/ for (i = 0; i < page_size; i += PAGE_SIZE)
BUG_ON(map_kernel_page(start + i, phys, __pgprot(flags)));
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.