tlb.c 774 B

1234567891011121314151617181920212223
  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. #include <linux/module.h>
  11. #include <asm/arcregs.h>
  12. #include <asm/mmu_context.h>
  13. #include <asm/tlb.h>
  14. /* A copy of the ASID from the PID reg is kept in asid_cache */
  15. int asid_cache = FIRST_ASID;
  16. /* ASID to mm struct mapping. We have one extra entry corresponding to
  17. * NO_ASID to save us a compare when clearing the mm entry for old asid
  18. * see get_new_mmu_context (asm-arc/mmu_context.h)
  19. */
  20. struct mm_struct *asid_mm_map[NUM_ASID + 1];