Re: [rfc 37/45] x86_64: Support for fast per cpu operations

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Mackerras
Date: Monday, November 19, 2007 - 7:45 pm

H. Peter Anvin writes:


The problem I found when I tried to do that on powerpc is that gcc
believes it can cache addresses of TLS variables.  If you try and use
TLS accesses for per-cpu variables then you end up accessing the wrong
cpu's variables due to that, since our "TLS" pointer can change at any
point where preemption is enabled.

If we wanted to do per-task variables then TLS would be perfect for
that.

Paul.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [rfc 37/45] x86_64: Support for fast per cpu operations, Christoph Lameter, (Mon Nov 19, 7:03 pm)
Re: [rfc 37/45] x86_64: Support for fast per cpu operations, Paul Mackerras, (Mon Nov 19, 7:45 pm)