Skip to content

Commit

Permalink
microblaze: Fix TLB macros
Browse files Browse the repository at this point in the history
To be able to do trace TLB operations.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed Apr 1, 2010
1 parent 3765d69 commit e84452d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/microblaze/include/asm/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ extern void _tlbie(unsigned long address);
extern void _tlbia(void);

#define __tlbia() { preempt_disable(); _tlbia(); preempt_enable(); }
#define __tlbie(x) { _tlbie(x); }

static inline void local_flush_tlb_all(void)
{ __tlbia(); }
static inline void local_flush_tlb_mm(struct mm_struct *mm)
{ __tlbia(); }
static inline void local_flush_tlb_page(struct vm_area_struct *vma,
unsigned long vmaddr)
{ _tlbie(vmaddr); }
{ __tlbie(vmaddr); }
static inline void local_flush_tlb_range(struct vm_area_struct *vma,
unsigned long start, unsigned long end)
{ __tlbia(); }
Expand Down

0 comments on commit e84452d

Please sign in to comment.