diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2022-11-22 17:10:11 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-11-24 08:57:41 +0100 |
commit | c6355995ba471d7ad574174e593192ce805c7e1a (patch) | |
tree | 169ca4498e04573ddd1d0ea37a97b0a3e8c326dc /crypto | |
parent | d73a257f7f86871c3aac24dc20538e3983096647 (diff) |
x86/boot/compressed: Move startup32_load_idt() into .text section
Convert startup32_load_idt() into an ordinary function and move it into
the .text section. This involves turning the rva() immediates into ones
derived from a local label, and preserving/restoring the %ebp and %ebx
as per the calling convention.
Also move the #ifdef to the only existing call site. This makes it clear
that the function call does nothing if support for memory encryption is
not compiled in.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221122161017.2426828-12-ardb@kernel.org
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions