Skip to content
Commit ded41057 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

x86: setup segment registers before percpu areas



The base of the percpu area is stored in the %gs base, and writing
to %gs destroys it.  Move setup_segments earlier, before the %gs
base is written, and keep setup_percpu_area close so that the base
is updated close to the selector.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent d589407f
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