4 * SH-4 specific TLB operations
6 * Copyright (C) 1999 Niibe Yutaka
7 * Copyright (C) 2002 Paul Mundt
9 * Released under the terms of the GNU GPL v2.0.
12 #include <asm/system.h>
13 #include <asm/mmu_context.h>
15 void local_flush_tlb_one(unsigned long asid, unsigned long page)
17 unsigned long addr, data;
20 * NOTE: PTEH.ASID should be set to this MM
21 * _AND_ we need to write ASID to the array.
23 * It would be simple if we didn't need to set PTEH.ASID...
25 addr = MMU_UTLB_ADDRESS_ARRAY | MMU_PAGE_ASSOC_BIT;
26 data = page | asid; /* VALID bit is off */
28 ctrl_outl(data, addr);