#define flush_cache_kmaps() \ do { \ if (cache_is_vivt()) \
flush_cache_all(); \
} while (0)
extern pte_t *pkmap_page_table;
/* * The reason for kmap_high_get() is to ensure that the currently kmap'd * page usage count does not decrease to zero while we're using its * existing virtual mapping in an atomic context. With a VIVT cache this * is essential to do, but with a VIPT cache this is only an optimization * so not to pay the price of establishing a second mapping if an existing * one can be used. However, on platforms without hardware TLB maintenance * broadcast, we simply cannot use ARCH_NEEDS_KMAP_HIGH_GET at all since * the locking involved must also disable IRQs which is incompatible with * the IPI mechanism used by global TLB operations.
*/ #define ARCH_NEEDS_KMAP_HIGH_GET #ifdefined(CONFIG_SMP) && defined(CONFIG_CPU_TLB_V6) #undef ARCH_NEEDS_KMAP_HIGH_GET #ifdefined(CONFIG_HIGHMEM) && defined(CONFIG_CPU_CACHE_VIVT) #error"The sum of features in your kernel config cannot be supported together" #endif #endif
/* * Needed to be able to broadcast the TLB invalidation for kmap.
*/ #ifdef CONFIG_ARM_ERRATA_798181 #undef ARCH_NEEDS_KMAP_HIGH_GET #endif
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.