| To: | Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> |
|---|---|
| Subject: | Re: [PATCH] Improve atomic.h implementation robustness |
| From: | Dominic Sweetman <dom@mips.com> |
| Date: | Thu, 2 Dec 2004 08:01:24 +0000 |
| Cc: | "Maciej W. Rozycki" <macro@linux-mips.org>, 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: | <20041201230332.GM3225@rembrandt.csv.ica.uni-stuttgart.de> |
| 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> |
| Sender: | linux-mips-bounce@linux-mips.org |
Thiemo, > I had guessed you already know what i mean. :-) Generally a bad guess, of course... > Current 64bit MIPS kernels run in (C)KSEG0, and exploit sign-extension > to optimize symbol loads (2 instead of 6/7 instructions, the same as in > 32bit kernels). Gross... yet ingenious. I see the problem. You want to use a 32-bit-pointer "la" for the addresses of static variables in the kernel build (which works, because the kernel is in the 32-bit-pointer-accessible 'kseg0'). The assembler macro was a very Linux solution, if you don't mind my saying so... A more native compiler fix would probably be a good idea. What ABI are you using for the 64-bit kernel build (n64? how do you get it to build non-PIC?) And what constraints are there on your choice of gcc version? - it would be easier if 3.4 was OK. -- Dominic Sweetman MIPS Technologies |
| Previous by Date: | Re: [PATCH] Broadcom SWARM IDE in 2.6, Steven J. Hill |
|---|---|
| Next by Date: | Re: [PATCH] Improve atomic.h implementation robustness, Thiemo Seufer |
| Previous by Thread: | Re: [PATCH] Improve atomic.h implementation robustness, Thiemo Seufer |
| Next by Thread: | Re: [PATCH] Improve atomic.h implementation robustness, Thiemo Seufer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |