Skip to content

Commit

Permalink
No barrier needed on au1x.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Pete Popov authored and Ralf Baechle committed Oct 29, 2005
1 parent 13d1d73 commit d437441
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions arch/mips/pci/ops-au1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@

int (*board_pci_idsel)(unsigned int devsel, int assert);

/* CP0 hazard avoidance. */
#define BARRIER __asm__ __volatile__(".set noreorder\n\t" \
"nop; nop; nop; nop;\t" \
".set reorder\n\t")

void mod_wired_entry(int entry, unsigned long entrylo0,
unsigned long entrylo1, unsigned long entryhi,
unsigned long pagemask)
Expand All @@ -66,16 +61,12 @@ void mod_wired_entry(int entry, unsigned long entrylo0,
old_ctx = read_c0_entryhi() & 0xff;
old_pagemask = read_c0_pagemask();
write_c0_index(entry);
BARRIER;
write_c0_pagemask(pagemask);
write_c0_entryhi(entryhi);
write_c0_entrylo0(entrylo0);
write_c0_entrylo1(entrylo1);
BARRIER;
tlb_write_indexed();
BARRIER;
write_c0_entryhi(old_ctx);
BARRIER;
write_c0_pagemask(old_pagemask);
}

Expand Down

0 comments on commit d437441

Please sign in to comment.