diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-09 02:37:18 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:41 -0500 |
commit | cdcc970829e81da3445346cb71b2ea264c9952b9 (patch) | |
tree | 0a82de87d6b2d8b86d8b5badd58daec44b026d68 /include/asm-sh/cpu-sh5 | |
parent | 9085fa1255fc16bf0dbd217e9f4cdccf16f064d3 (diff) |
sh: Move in the SH-5 mmu_context headers.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/cpu-sh5')
-rw-r--r-- | include/asm-sh/cpu-sh5/mmu_context.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/asm-sh/cpu-sh5/mmu_context.h b/include/asm-sh/cpu-sh5/mmu_context.h new file mode 100644 index 000000000000..df857fc09960 --- /dev/null +++ b/include/asm-sh/cpu-sh5/mmu_context.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef __ASM_SH_CPU_SH5_MMU_CONTEXT_H | ||
2 | #define __ASM_SH_CPU_SH5_MMU_CONTEXT_H | ||
3 | |||
4 | /* Common defines */ | ||
5 | #define TLB_STEP 0x00000010 | ||
6 | #define TLB_PTEH 0x00000000 | ||
7 | #define TLB_PTEL 0x00000008 | ||
8 | |||
9 | /* PTEH defines */ | ||
10 | #define PTEH_ASID_SHIFT 2 | ||
11 | #define PTEH_VALID 0x0000000000000001 | ||
12 | #define PTEH_SHARED 0x0000000000000002 | ||
13 | #define PTEH_MATCH_ASID 0x00000000000003ff | ||
14 | |||
15 | #ifndef __ASSEMBLY__ | ||
16 | /* This has to be a common function because the next location to fill | ||
17 | * information is shared. */ | ||
18 | extern void __do_tlb_refill(unsigned long address, unsigned long long is_text_not_data, pte_t *pte); | ||
19 | |||
20 | /* Profiling counter. */ | ||
21 | #ifdef CONFIG_SH64_PROC_TLB | ||
22 | extern unsigned long long calls_to_do_fast_page_fault; | ||
23 | #endif | ||
24 | |||
25 | #endif /* __ASSEMBLY__ */ | ||
26 | |||
27 | #endif /* __ASM_SH_CPU_SH5_MMU_CONTEXT_H */ | ||