| Date | Wed, 09 Jul 2008 09:51:40 -0700 | From | Mike Travis <> | Subject | [RFC 11/15] x86_64: Replace xxx_pda() operations in include_asm-x86_stackprotector_h |
| |
* It is now possible to use percpu operations for pda access since the pda is in the percpu area. Drop the pda operations.
Thus:
read_pda --> x86_read_percpu write_pda --> x86_write_percpu add_pda (+1) --> x86_inc_percpu or_pda --> x86_or_percpu
Based on linux-2.6.tip/master
Signed-off-by: Christoph Lameter <cl@linux-foundation.org> Signed-off-by: Mike Travis <travis@sgi.com> --- include/asm-x86/stackprotector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.tip.orig/include/asm-x86/stackprotector.h 2008-07-01 10:41:33.000000000 -0700 +++ linux-2.6.tip/include/asm-x86/stackprotector.h 2008-07-01 10:49:14.920355480 -0700 @@ -32,7 +32,7 @@ static __always_inline void boot_init_st canary += tsc + (tsc << 32UL); current->stack_canary = canary; - write_pda(stack_canary, canary); + x86_write_percpu(pda.stack_canary, canary); } #endif --
|