| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] use proper hazard macro instead of BARRIER |
| From: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
| Date: | Thu, 21 Sep 2006 01:37:02 +0900 (JST) |
| Cc: | ralf@linux-mips.org |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c
index a681f57..3bf5e8a 100644
--- a/arch/mips/mm/init.c
+++ b/arch/mips/mm/init.c
@@ -38,11 +38,6 @@ #include <asm/pgalloc.h>
#include <asm/tlb.h>
#include <asm/fixmap.h>
-/* CP0 hazard avoidance. */
-#define BARRIER __asm__ __volatile__(".set noreorder\n\t" \
- "nop; nop; nop; nop; nop; nop;\n\t" \
- ".set reorder\n\t")
-
/* Atomicity and interruptability */
#ifdef CONFIG_MIPS_MT_SMTC
@@ -161,7 +156,7 @@ #ifdef CONFIG_MIPS_MT_SMTC
/* preload TLB instead of local_flush_tlb_one() */
mtc0_tlbw_hazard();
tlb_probe();
- BARRIER;
+ tlb_probe_hazard();
tlbidx = read_c0_index();
mtc0_tlbw_hazard();
if (tlbidx < 0)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | linux-libc-headers-2.6.17, sathesh babu |
|---|---|
| Next by Date: | [PATCH 0/4] remove scheduled boards, Yoichi Yuasa |
| Previous by Thread: | linux-libc-headers-2.6.17, sathesh babu |
| Next by Thread: | [PATCH 0/4] remove scheduled boards, Yoichi Yuasa |
| Indexes: | [Date] [Thread] [Top] [All Lists] |