diff options
Diffstat (limited to 'arch/sh/include/cpu-sh4/cpu/mmu_context.h')
-rw-r--r-- | arch/sh/include/cpu-sh4/cpu/mmu_context.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/arch/sh/include/cpu-sh4/cpu/mmu_context.h b/arch/sh/include/cpu-sh4/cpu/mmu_context.h index 5963124c1d4a..e46ec708105a 100644 --- a/arch/sh/include/cpu-sh4/cpu/mmu_context.h +++ b/arch/sh/include/cpu-sh4/cpu/mmu_context.h | |||
@@ -19,13 +19,26 @@ | |||
19 | 19 | ||
20 | #define MMUCR 0xFF000010 /* MMU Control Register */ | 20 | #define MMUCR 0xFF000010 /* MMU Control Register */ |
21 | 21 | ||
22 | #define MMU_TLB_ENTRY_SHIFT 8 | ||
23 | |||
22 | #define MMU_ITLB_ADDRESS_ARRAY 0xF2000000 | 24 | #define MMU_ITLB_ADDRESS_ARRAY 0xF2000000 |
23 | #define MMU_ITLB_ADDRESS_ARRAY2 0xF2800000 | 25 | #define MMU_ITLB_ADDRESS_ARRAY2 0xF2800000 |
26 | #define MMU_ITLB_DATA_ARRAY 0xF3000000 | ||
27 | #define MMU_ITLB_DATA_ARRAY2 0xF3800000 | ||
28 | |||
24 | #define MMU_UTLB_ADDRESS_ARRAY 0xF6000000 | 29 | #define MMU_UTLB_ADDRESS_ARRAY 0xF6000000 |
25 | #define MMU_UTLB_ADDRESS_ARRAY2 0xF6800000 | 30 | #define MMU_UTLB_ADDRESS_ARRAY2 0xF6800000 |
31 | #define MMU_UTLB_DATA_ARRAY 0xF7000000 | ||
32 | #define MMU_UTLB_DATA_ARRAY2 0xF7800000 | ||
26 | #define MMU_PAGE_ASSOC_BIT 0x80 | 33 | #define MMU_PAGE_ASSOC_BIT 0x80 |
27 | 34 | ||
28 | #define MMUCR_TI (1<<2) | 35 | #ifdef CONFIG_MMU |
36 | #define MMUCR_AT (1 << 0) | ||
37 | #else | ||
38 | #define MMUCR_AT (0) | ||
39 | #endif | ||
40 | |||
41 | #define MMUCR_TI (1 << 2) | ||
29 | 42 | ||
30 | #define MMUCR_URB 0x00FC0000 | 43 | #define MMUCR_URB 0x00FC0000 |
31 | #define MMUCR_URB_SHIFT 18 | 44 | #define MMUCR_URB_SHIFT 18 |
@@ -58,7 +71,8 @@ | |||
58 | #endif | 71 | #endif |
59 | 72 | ||
60 | #define MMU_NTLB_ENTRIES 64 | 73 | #define MMU_NTLB_ENTRIES 64 |
61 | #define MMU_CONTROL_INIT (0x05|MMUCR_SQMD|MMUCR_ME|MMUCR_SE|MMUCR_AEX) | 74 | #define MMU_CONTROL_INIT (MMUCR_AT | MMUCR_TI | MMUCR_SQMD | \ |
75 | MMUCR_ME | MMUCR_SE | MMUCR_AEX) | ||
62 | 76 | ||
63 | #define TRA 0xff000020 | 77 | #define TRA 0xff000020 |
64 | #define EXPEVT 0xff000024 | 78 | #define EXPEVT 0xff000024 |