/* * When HIGHMEM is enabled we have holes in the memory map so we need * pfn_valid() that takes into account the actual extents of the physical * memory
*/ #ifdef CONFIG_HIGHMEM
/* * __pa, __va, virt_to_page (ALERT: deprecated, don't use them) * * These macros have historically been misnamed * virt here means link-address/program-address as embedded in object code. * And for ARC, link-addr = physical address
*/ #define __pa(vaddr) ((unsignedlong)(vaddr)) #define __va(paddr) ((void *)((unsignedlong)(paddr)))
/* * Use virt_to_pfn with caution: * If used in pte or paddr related macros, it could cause truncation * in PAE40 builds * As a rule of thumb, only use it in helpers starting with virt_ * You have been warned !
*/ staticinlineunsignedlong virt_to_pfn(constvoid *kaddr)
{ return __pa(kaddr) >> PAGE_SHIFT;
}
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.