mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 20:04:01 +00:00
microblaze: Fix TLB macros
To be able to do trace TLB operations. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
3765d6958d
commit
e84452dd9f
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ extern void _tlbie(unsigned long address);
|
||||||
extern void _tlbia(void);
|
extern void _tlbia(void);
|
||||||
|
|
||||||
#define __tlbia() { preempt_disable(); _tlbia(); preempt_enable(); }
|
#define __tlbia() { preempt_disable(); _tlbia(); preempt_enable(); }
|
||||||
|
#define __tlbie(x) { _tlbie(x); }
|
||||||
|
|
||||||
static inline void local_flush_tlb_all(void)
|
static inline void local_flush_tlb_all(void)
|
||||||
{ __tlbia(); }
|
{ __tlbia(); }
|
||||||
|
@ -31,7 +32,7 @@ static inline void local_flush_tlb_mm(struct mm_struct *mm)
|
||||||
{ __tlbia(); }
|
{ __tlbia(); }
|
||||||
static inline void local_flush_tlb_page(struct vm_area_struct *vma,
|
static inline void local_flush_tlb_page(struct vm_area_struct *vma,
|
||||||
unsigned long vmaddr)
|
unsigned long vmaddr)
|
||||||
{ _tlbie(vmaddr); }
|
{ __tlbie(vmaddr); }
|
||||||
static inline void local_flush_tlb_range(struct vm_area_struct *vma,
|
static inline void local_flush_tlb_range(struct vm_area_struct *vma,
|
||||||
unsigned long start, unsigned long end)
|
unsigned long start, unsigned long end)
|
||||||
{ __tlbia(); }
|
{ __tlbia(); }
|
||||||
|
|
Loading…
Reference in a new issue