Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Sun, 17 May 2009
 14:58:03 -0700
Received: from psmtp.com ([64.18.0.57]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Sun, 17 May 2009 14:58:03 -0700
Received: from source ([213.58.128.207]) by exprod5mx261.postini.com
 ([64.18.4.11]) with SMTP;	Sun, 17 May 2009 17:58:03 EDT
Received: from localhost.localdomain ([127.0.0.1]:58127 "EHLO
	ftp.linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by ftp.linux-mips.org	with
 ESMTP id S20023878AbZEQV5r (ORCPT	<rfc822;andy.sharp@onstor.com>); Sun, 17
 May 2009 22:57:47 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Sun, 17 May 2009 22:57:30
 +0100 (BST)
Received: from mail1.pearl-online.net ([62.159.194.147]:26511 "EHLO
	mail1.pearl-online.net" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org	with
 ESMTP id S20022459AbZEQV5S (ORCPT	<rfc822;linux-mips@linux-mips.org>); Sun,
 17 May 2009 22:57:18 +0100
Received: from Mobile0.Peter (83.243.117.39.dynamic.cablesurf.de
 [83.243.117.39])	by mail1.pearl-online.net (Postfix) with ESMTP id 3FF61B99C;
	Sun, 17 May 2009 23:57:11 +0200 (CEST)
Received: from Indigo2.Peter (Indigo2.Peter [192.168.1.28])	by Mobile0.Peter
 (8.12.6/8.12.6/Sendmail/Linux 2.2.13) with ESMTP id n4I04Y4I001322;	Mon, 18
 May 2009 00:04:34 GMT
Received: from Indigo2.Peter (localhost [127.0.0.1])	by Indigo2.Peter
 (8.12.6/8.12.6/Sendmail/Linux 2.6.14-rc2-ip28) with ESMTP id n4HLnk0Q001273;
	Sun, 17 May 2009 23:49:46 +0200
Received: from localhost (pf@localhost)	by Indigo2.Peter
 (8.12.6/8.12.6/Submit) with ESMTP id n4HLnjaV001270;	Sun, 17 May 2009
 23:49:45 +0200
From: peter fuerst <post@pfrst.de>
To: Ralf Baechle <ralf@linux-mips.org>
CC: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Sun, 17 May 2009 14:49:45 -0700
Subject: [PATCH] -mr10k-cache-barrier=store
Thread-Topic: [PATCH] -mr10k-cache-barrier=store
Thread-Index: AcnXOo11pmSBNH//TQy9MtSo5vHMLw==
Message-ID: <Pine.LNX.4.58.0905172334550.1259@Indigo2.Peter>
Reply-To: "post@pfrst.de" <post@pfrst.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 17 May 2009 21:58:03.0204 (UTC)
 FILETIME=[8D188840:01C9D73A]
x-ems-stamp: 9ewL63sX35dikSCGPyrRDA==
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-neptune: 0/0/0.00/0
x-pstn-levels: (S:58.44296/99.90000 CV: 8.2367 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-authentication-warning: Indigo2.Peter: pf owned process doing -bs
x-x-sender: pf@Indigo2.Peter
x-list: linux-mips
x-archive-position: 22782
x-ecartis-version: Ecartis v1.0.0
x-original-sender: post@pfrst.de
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0



Richard Sandiford's new code for inserting the cache-barriers, for GCC
4.3 and above and already incorporated in the current GCC-release, uses
a slightly different option-syntax.
(Accordingly i extended the patches for older GCC-releases to accept
both styles)


Signed-off-by: peter fuerst <post@pfrst.de>


--- git/arch/mips/Makefile	Thu May 14 12:50:28 2009
+++ wrk/arch/mips/Makefile	Sun May 17 23:14:10 2009
@@ -473,12 +473,12 @@
 # Simplified: what IP22 does at 128MB+ in ksegN, IP28 does at 512MB+ in xk=
phys
 #
 ifdef CONFIG_SGI_IP28
-  ifeq ($(call cc-option-yn,-mr10k-cache-barrier=3D1), n)
-      $(error gcc doesn't support needed option -mr10k-cache-barrier=3D1)
+  ifeq ($(call cc-option-yn,-mr10k-cache-barrier=3Dstore), n)
+      $(error gcc doesn't support needed option -mr10k-cache-barrier=3Dsto=
re)
   endif
 endif
 core-$(CONFIG_SGI_IP28)		+=3D arch/mips/sgi-ip22/
-cflags-$(CONFIG_SGI_IP28)	+=3D -mr10k-cache-barrier=3D1 -I$(srctree)/arch/=
mips/include/asm/mach-ip28
+cflags-$(CONFIG_SGI_IP28)	+=3D -mr10k-cache-barrier=3Dstore -I$(srctree)/a=
rch/mips/include/asm/mach-ip28
 load-$(CONFIG_SGI_IP28)		+=3D 0xa800000020004000

 #

