lkml.org 
[lkml]   [2007]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rfc 37/45] x86_64: Support for fast per cpu operations
David Miller wrote:
>> There was, at some point, discussion about using the gcc TLS mechanism,
>> which should permit even better code to be generated. Unfortunately, it
>> would require gcc to be able to reference %gs instead of %fs (and vice
>> versa for i386), which I don't think is available in anything except
>> maybe the most cutting-edge version of gcc.
>
> You can't use __thread because GCC will cache __thread computed
> addresses across context switches and cpu changes.
>
> It's been tried before on powerpc, it doesn't work.

OK, that pretty much answers that question.

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-11-20 03:25    [W:0.161 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site