Re: [RFC, patch] i386: vgetcpu(), take 2

From: Andi Kleen
Date: Wed Jun 21 2006 - 18:20:21 EST



> Can we use similar mechanism to access pda in vsyscall in x86_64 (by
> storing the address of pda there).


You mean in the kernel? %gs prefix is a lot faster than this.

Also the limit is only 20bit, not enough for a full address.

For user space it's useful though, but I don't see any immediate uses
other than cpu number and node number. For most purposes glibc TLS
(which uses %fs) is probably sufficient.

-Andi
-
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/