x86: load pointer to pda into %gs while brining up a CPU
commitf32ff5388d86518c0375ccdb330d3b459b9c405e
authorTejun Heo <tj@kernel.org>
Tue, 13 Jan 2009 11:41:35 +0000 (13 20:41 +0900)
committerIngo Molnar <mingo@elte.hu>
Fri, 16 Jan 2009 13:19:26 +0000 (16 14:19 +0100)
tree8551cb03dcbbfafaac3500aac18fee811b0f1ffe
parent3e5d8f978435bb9ba4dfe3f4514e65e7885db1a9
x86: load pointer to pda into %gs while brining up a CPU

[ Based on original patch from Christoph Lameter and Mike Travis. ]

CPU startup code in head_64.S loaded address of a zero page into %gs
for temporary use till pda is loaded but address to the actual pda is
available at the point.  Load the real address directly instead.

This will help unifying percpu and pda handling later on.

This patch is mostly taken from Mike Travis' "x86_64: Fold pda into
per cpu area" patch.

Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/include/asm/trampoline.h
arch/x86/kernel/acpi/sleep.c
arch/x86/kernel/head64.c
arch/x86/kernel/head_64.S
arch/x86/kernel/smpboot.c