mmu_context.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * include/asm-sh/cpu-sh4/mmu_context.h
  3. *
  4. * Copyright (C) 1999 Niibe Yutaka
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #ifndef __ASM_CPU_SH4_MMU_CONTEXT_H
  11. #define __ASM_CPU_SH4_MMU_CONTEXT_H
  12. #define MMU_PTEH 0xFF000000 /* Page table entry register HIGH */
  13. #define MMU_PTEL 0xFF000004 /* Page table entry register LOW */
  14. #define MMU_TTB 0xFF000008 /* Translation table base register */
  15. #define MMU_TEA 0xFF00000C /* TLB Exception Address */
  16. #define MMU_PTEA 0xFF000034 /* Page table entry assistance register */
  17. #define MMUCR 0xFF000010 /* MMU Control Register */
  18. #define MMU_ITLB_ADDRESS_ARRAY 0xF2000000
  19. #define MMU_UTLB_ADDRESS_ARRAY 0xF6000000
  20. #define MMU_PAGE_ASSOC_BIT 0x80
  21. #ifdef CONFIG_X2TLB
  22. #define MMUCR_ME (1 << 7)
  23. #else
  24. #define MMUCR_ME (0)
  25. #endif
  26. #ifdef CONFIG_SH_STORE_QUEUES
  27. #define MMUCR_SQMD (1 << 9)
  28. #else
  29. #define MMUCR_SQMD (0)
  30. #endif
  31. #define MMU_NTLB_ENTRIES 64
  32. #define MMU_CONTROL_INIT (0x05|MMUCR_SQMD|MMUCR_ME)
  33. #define MMU_ITLB_DATA_ARRAY 0xF3000000
  34. #define MMU_UTLB_DATA_ARRAY 0xF7000000
  35. #define MMU_UTLB_ENTRIES 64
  36. #define MMU_U_ENTRY_SHIFT 8
  37. #define MMU_UTLB_VALID 0x100
  38. #define MMU_ITLB_ENTRIES 4
  39. #define MMU_I_ENTRY_SHIFT 8
  40. #define MMU_ITLB_VALID 0x100
  41. #define TRA 0xff000020
  42. #define EXPEVT 0xff000024
  43. #define INTEVT 0xff000028
  44. #endif /* __ASM_CPU_SH4_MMU_CONTEXT_H */