/* * RISC-V implements return to user-space through an xRET instruction, * which is not core serializing.
*/ staticinlinevoid sync_core_before_usermode(void)
{ asmvolatile ("fence.i" ::: "memory");
}
#ifdef CONFIG_SMP /* * Ensure the next switch_mm() on every CPU issues a core serializing * instruction for the given @mm.
*/ staticinlinevoid prepare_sync_core_cmd(struct mm_struct *mm)
{
cpumask_setall(&mm->context.icache_stale_mask);
} #else staticinlinevoid prepare_sync_core_cmd(struct mm_struct *mm)
{
} #endif/* CONFIG_SMP */
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.