x86-64: Use absolute displacements for per-cpu accesses.
authorBrian Gerst <brgerst@gmail.com>
Sun, 18 Jan 2009 15:38:59 +0000 (00:38 +0900)
committerTejun Heo <tj@kernel.org>
Sun, 18 Jan 2009 15:38:59 +0000 (00:38 +0900)
commit87b264065880fa696c121dad8498a60524e0f6de
tree5a40a9ca966e5feda1040f9ef2c7798ac4d1e234
parentc2558e0eba66b49993e619da66c95a50a97830a3
x86-64: Use absolute displacements for per-cpu accesses.

Accessing memory through %gs should not use rip-relative addressing.
Adding a P prefix for the argument tells gcc to not add (%rip) to
the memory references.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/include/asm/percpu.h
arch/x86/include/asm/system.h