/* * TLB flushing operations for SH with an MMU. * * Copyright (C) 1999 Niibe Yutaka * Copyright (C) 2003 Paul Mundt * * 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.
*/ #include <linux/mm.h> #include <asm/mmu_context.h> #include <asm/tlbflush.h>
void local_flush_tlb_mm(struct mm_struct *mm)
{ unsignedint cpu = smp_processor_id();
/* Invalidate all TLB of this process. */ /* Instead of invalidating each TLB, we get new MMU context. */ if (cpu_context(cpu, mm) != NO_CONTEXT) { unsignedlong flags;
/* * This is the most destructive of the TLB flushing options, * and will tear down all of the UTLB/ITLB mappings, including * wired entries.
*/
__raw_writel(__raw_readl(MMUCR) | MMUCR_TI, MMUCR);
local_irq_restore(flags);
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.0 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.