]> git.baikalelectronics.ru Git - kernel.git/commit
x86, boot: Move lldt/ltr out of 64bit code section
authorYinghai Lu <yinghai@kernel.org>
Thu, 24 Jan 2013 20:20:01 +0000 (12:20 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 29 Jan 2013 23:26:19 +0000 (15:26 -0800)
commit71f93876dd166f8e48309b54686754c13594662f
tree84fe3454e2c5668471d338f41482b1c9428f43ec
parent868c6b8cbcd794d772dfc33687f23d34f077552e
x86, boot: Move lldt/ltr out of 64bit code section

commit 8948a4188

    x86_64: Early segment setup for VT

sets up LDT and TR into a valid state in order to speed up boot
decompression under VT.

Those code are put in code64, and it is using GDT that is only
loaded from code32 path.

That breaks booting with 64bit bootloader that does not go through
code32 path and jump to startup_64 directly, and it has different
GDT.

Move those lines into code32 after their GDT is loaded.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1359058816-7615-21-git-send-email-yinghai@kernel.org
Cc: Zachary Amsden <zamsden@gmail.com>
Cc: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/boot/compressed/head_64.S