linux-mips
[Top] [All Lists]

[PATCH] define MIPS34K_MISSED_ITLB_WAR for other PMC-Sierra SoC

To: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] define MIPS34K_MISSED_ITLB_WAR for other PMC-Sierra SoC
From: Florian Fainelli <florian@openwrt.org>
Date: Mon, 27 Apr 2009 16:47:23 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:content-type :content-transfer-encoding:content-disposition:message-id; bh=QcVgxmyiYYY5puOVFgS21hQMRrzlusI6470KCpz+wEI=; b=Q6RxwWl0UnAxdBZK5Bk5g+IoCJiWFVfZAfLOgn0EV3IUMaaHhvzg6GRuNCqpQUDXpm g6PXqliIT0DopPda5M2vCPF8Sf7c6+98phz9SID2RaL9fJd8Um+YKVvyZv3gsI2P5qYp 1CyrLrtafN4NcjzfGRVpGyDFf3lbSjCYxNGoE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to :content-type:content-transfer-encoding:content-disposition :message-id; b=MJG9tUO6Drl6Oz6sxe0fHvKMd+k2rg4VSs9KtcQilnHL8R2FuAeAlYvTwoxQvLqnNf CIxK1AElMK45QVEEGCSSL+pKzvb7X5bC3mENuGoBoMAvsl+mvJqp8PnycIsvXH5F4vkZ h0nRvu+QqGMc7jejPpU4Fk0f4pfOEDrnfxHo4=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Trying to build a PMC-Sierra MSP4200 VoIP gateway defconfig
will not work since MIPS34K_MISSED_ITLB_WAR is not defined
for all boards supported within pmc-serria/msp71xx. This
patch defines MIPS34K_MISSED_ITLB_WAR to prevent such build
failures:

  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-mips
  CC      arch/mips/kernel/asm-offsets.s
In file included 
fromlinux-msp71xx/linux-2.6.29/arch/mips/include/asm/bitops.h:24,
                 from include/linux/bitops.h:17,
                 from include/linux/kernel.h:15,
                 from include/linux/sched.h:52,
                 from arch/mips/kernel/asm-offsets.c:13:
linux-msp71xx/linux-2.6.29/arch/mips/include/asm/war.h:241:2: error: #error 
Check setting of MIPS34K_MISSED_ITLB_WAR for your 
platform

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/include/asm/pmc-sierra/msp71xx/war.h 
b/arch/mips/include/asm/pmc-sierra/msp71xx/war.h
index 0bf48fc..9e2ee42 100644
--- a/arch/mips/include/asm/pmc-sierra/msp71xx/war.h
+++ b/arch/mips/include/asm/pmc-sierra/msp71xx/war.h
@@ -23,6 +23,8 @@
 #if defined(CONFIG_PMC_MSP7120_EVAL) || defined(CONFIG_PMC_MSP7120_GW) || \
        defined(CONFIG_PMC_MSP7120_FPGA)
 #define MIPS34K_MISSED_ITLB_WAR         1
+#else
+#define MIPS34K_MISSED_ITLB_WAR         0
 #endif
 
 #endif /* __ASM_MIPS_PMC_SIERRA_WAR_H */

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] define MIPS34K_MISSED_ITLB_WAR for other PMC-Sierra SoC, Florian Fainelli <=