| To: | "Maciej W. Rozycki" <macro@linux-mips.org> |
|---|---|
| Subject: | Re: [PATCH] Improve atomic.h implementation robustness |
| From: | Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> |
| Date: | Thu, 2 Dec 2004 02:02:29 +0100 |
| Cc: | Dominic Sweetman <dom@mips.com>, linux-mips@linux-mips.org, ralf@linux-mips.org, Nigel Stephens <nigel@mips.com>, David Ung <davidu@mips.com> |
| In-reply-to: | <Pine.LNX.4.58L.0412020001340.20966@blysk.ds.pg.gda.pl> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20041201070014.GG3225@rembrandt.csv.ica.uni-stuttgart.de> <16813.39660.948092.328493@doms-laptop.algor.co.uk> <20041201204536.GI3225@rembrandt.csv.ica.uni-stuttgart.de> <Pine.LNX.4.58L.0412012151210.13579@blysk.ds.pg.gda.pl> <20041201230332.GM3225@rembrandt.csv.ica.uni-stuttgart.de> <Pine.LNX.4.58L.0412020001340.20966@blysk.ds.pg.gda.pl> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.6i |
Maciej W. Rozycki wrote: [snip] > > I discussed this with Richard Sandiford a while ago, and the conclusion > > was to implement an explicit --msym32 option for both gcc and gas to > > improve register scheduling and get rid of the gas hack. So far, nobody > > came around to actually do the work for it. > > ... like this, for example. But if nobody has implemented it yet, then > perhaps nobody is really interested in it? ;-) The old solution works, and kernel developers tend to use old toolchains. > > seen additional load/store insn creeping in ll/sc loops. I believe > > there's a large amount of inline assembly code (not necessarily in the > > kernel) which relies on similiar assumptions. > > With explicit relocs you have no problem with any instructions appearing > inside inline asms unexpectedly. That is if you use the "R" constraint -- > the "m" one never guaranteed that. But it happened to work, and is in widespread use. Thiemo |
| Previous by Date: | Re: [PATCH] 2.4: Preemption fixes for Broadcom DMA Page operations, Manish Lachwani |
|---|---|
| Next by Date: | Re: [PATCH 2.6] tlbwr hazard for NEC VR4100, Yoichi Yuasa |
| Previous by Thread: | Re: [PATCH] Improve atomic.h implementation robustness, Maciej W. Rozycki |
| Next by Thread: | Re: [PATCH] Improve atomic.h implementation robustness, Dominic Sweetman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |