Vineet Gupta | f1f3347 | 2013-01-18 15:12:19 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * TLB Management (flush/create/diagnostics) for ARC700 |
| 3 | * |
| 4 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | #include <linux/module.h> |
| 12 | #include <asm/arcregs.h> |
| 13 | #include <asm/mmu_context.h> |
| 14 | #include <asm/tlb.h> |
| 15 | |
| 16 | /* A copy of the ASID from the PID reg is kept in asid_cache */ |
| 17 | int asid_cache = FIRST_ASID; |
| 18 | |
| 19 | /* ASID to mm struct mapping. We have one extra entry corresponding to |
| 20 | * NO_ASID to save us a compare when clearing the mm entry for old asid |
| 21 | * see get_new_mmu_context (asm-arc/mmu_context.h) |
| 22 | */ |
| 23 | struct mm_struct *asid_mm_map[NUM_ASID + 1]; |