]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/boot/compressed: Avoid touching ECX in startup32_set_idt_entry()
authorArd Biesheuvel <ardb@kernel.org>
Tue, 22 Nov 2022 16:10:09 +0000 (17:10 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 24 Nov 2022 07:57:41 +0000 (08:57 +0100)
commit6aac80a8da46d70f2ae7ff97c9f45a15c7c9b3ef
tree51f732d9fbf3408585c126dc3a8deabd69646f0a
parent630f337f0c4fd80390e8600adcab31550aea33df
x86/boot/compressed: Avoid touching ECX in startup32_set_idt_entry()

Avoid touching register %ecx in startup32_set_idt_entry(), by folding
the MOV, SHL and ORL instructions into a single ORL which no longer
requires a temp register.

This permits ECX to be used as a function argument in a subsequent
patch.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221122161017.2426828-10-ardb@kernel.org
arch/x86/boot/compressed/head_64.S