Re: FOR REVIEW: New x86-64 vsyscall vgetcpu()



On Fri, Jun 16, 2006 at 05:37:06PM +0200, Andi Kleen wrote:
On Friday 16 June 2006 17:31, Zoltan Menyhart wrote:
Andi Kleen wrote:

That is not how user space TLS works. It usually has a base a register.

Can you please give me a real life (simplified) example?

On x86-64 it's just %fs:offset. gcc is a bit dumb on this and usually
loads the base address from %fs:0 first.

GCC is not dumb, unless you force it with -mno-tls-direct-seg-refs.
Guess you are bitten by SUSE GCC hack which makes -mno-tls-direct-seg-refs
the default (especially on x86-64 it is a really bad idea).

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



Relevant Pages

  • Re: building extension modules, and linking
    ... > interpreter -- rather than to some shared lib somewhere? ... loads your extension, ... extension module with "gcc -shared", ...
    (comp.lang.ruby)
  • Re: [PATCH][2.6.8-rc1-mm1] drivers/scsi/sg.c gcc341 inlining fix
    ... >> is exceedingly dumb if it fails to inline that case. ... >or possibly reporting it as a gcc problem. ... It shows you guys aren't compiler writers. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: How to make a sock puppet!
    ... There is a lot wrong with being as dumb as yorself! ... You are aware of the visits Galloway made to Iraq, ... 'I confess to being more argumentative here than in real life, ... The defence of democracy argument, ...
    (uk.politics.misc)
  • Re: Honk if I am making your boat payment
    ... Your dumb president's war against ... Why are you posting here? ... Calling an Illegal Alien an "Undocumented Worker" is like calling a ... Maybe they should try making friends with real people, in real life. ...
    (rec.boats)
  • Re: Honk if I am making your boat payment
    ... Your dumb president's war against ... Why are you posting here? ... Calling an Illegal Alien an "Undocumented Worker" is like calling a ... Maybe they should try making friends with real people, in real life. ...
    (rec.boats)