aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/include/asm/mmu.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arc/include/asm/mmu.h')
-rw-r--r--arch/arc/include/asm/mmu.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arc/include/asm/mmu.h b/arch/arc/include/asm/mmu.h
index 7c03fe61759c..c2663b32866b 100644
--- a/arch/arc/include/asm/mmu.h
+++ b/arch/arc/include/asm/mmu.h
@@ -32,6 +32,8 @@
32/* Error code if probe fails */ 32/* Error code if probe fails */
33#define TLB_LKUP_ERR 0x80000000 33#define TLB_LKUP_ERR 0x80000000
34 34
35#define TLB_DUP_ERR (TLB_LKUP_ERR | 0x00000001)
36
35/* TLB Commands */ 37/* TLB Commands */
36#define TLBWrite 0x1 38#define TLBWrite 0x1
37#define TLBRead 0x2 39#define TLBRead 0x2
@@ -46,21 +48,18 @@
46#ifndef __ASSEMBLY__ 48#ifndef __ASSEMBLY__
47 49
48typedef struct { 50typedef struct {
49 unsigned long asid; /* Pvt Addr-Space ID for mm */ 51 unsigned long asid; /* 8 bit MMU PID + Generation cycle */
50#ifdef CONFIG_ARC_TLB_DBG
51 struct task_struct *tsk;
52#endif
53} mm_context_t; 52} mm_context_t;
54 53
55#ifdef CONFIG_ARC_DBG_TLB_PARANOIA 54#ifdef CONFIG_ARC_DBG_TLB_PARANOIA
56void tlb_paranoid_check(unsigned int pid_sw, unsigned long address); 55void tlb_paranoid_check(unsigned int mm_asid, unsigned long address);
57#else 56#else
58#define tlb_paranoid_check(a, b) 57#define tlb_paranoid_check(a, b)
59#endif 58#endif
60 59
61void arc_mmu_init(void); 60void arc_mmu_init(void);
62extern char *arc_mmu_mumbojumbo(int cpu_id, char *buf, int len); 61extern char *arc_mmu_mumbojumbo(int cpu_id, char *buf, int len);
63void __init read_decode_mmu_bcr(void); 62void read_decode_mmu_bcr(void);
64 63
65#endif /* !__ASSEMBLY__ */ 64#endif /* !__ASSEMBLY__ */
66 65