diff options
Diffstat (limited to 'arch/arc/include/asm/mmu.h')
-rw-r--r-- | arch/arc/include/asm/mmu.h | 11 |
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 | ||
48 | typedef struct { | 50 | typedef 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 |
56 | void tlb_paranoid_check(unsigned int pid_sw, unsigned long address); | 55 | void 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 | ||
61 | void arc_mmu_init(void); | 60 | void arc_mmu_init(void); |
62 | extern char *arc_mmu_mumbojumbo(int cpu_id, char *buf, int len); | 61 | extern char *arc_mmu_mumbojumbo(int cpu_id, char *buf, int len); |
63 | void __init read_decode_mmu_bcr(void); | 62 | void read_decode_mmu_bcr(void); |
64 | 63 | ||
65 | #endif /* !__ASSEMBLY__ */ | 64 | #endif /* !__ASSEMBLY__ */ |
66 | 65 | ||