Skip to content
Commit f32ff538 authored by Tejun Heo's avatar Tejun Heo Committed by Ingo Molnar
Browse files

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: default avatarTejun Heo <tj@kernel.org>
parent 3e5d8f97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment