x86/boot: Micro-optimize GDT loading instructions
authorArvind Sankar <nivedita@alum.mit.edu>
Sun, 2 Feb 2020 17:13:53 +0000 (12:13 -0500)
committerArd Biesheuvel <ardb@kernel.org>
Sat, 22 Feb 2020 22:37:37 +0000 (23:37 +0100)
commit8a3abe30de9fffec8b44adeb78f93ecb0f09b0c5
treeda73671e10adac0ad36d768e1a1dd0c58a8daac2
parentb75e2b076d00751579c73cfbbc8a7eac7d2a0468
x86/boot: Micro-optimize GDT loading instructions

Rearrange the instructions a bit to use a 32-bit displacement once
instead of 2/3 times. This saves 8 bytes of machine code.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200202171353.3736319-8-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/boot/compressed/head_64.S