diff options
author | 2023-08-07 18:27:11 +0200 | |
---|---|---|
committer | 2023-08-07 20:49:26 +0200 | |
commit | cb83cece57e1889109dd73ea08ee338668c9d1b8 (patch) | |
tree | e2eed338ae1d091200375cc7803d41c01a237041 /usr | |
parent | x86/decompressor: Only call the trampoline when changing paging levels (diff) | |
download | linux-cb83cece57e1889109dd73ea08ee338668c9d1b8.tar.gz linux-cb83cece57e1889109dd73ea08ee338668c9d1b8.tar.bz2 linux-cb83cece57e1889109dd73ea08ee338668c9d1b8.zip |
x86/decompressor: Pass pgtable address to trampoline directly
The only remaining use of the trampoline address by the trampoline
itself is deriving the page table address from it, and this involves
adding an offset of 0x0. So simplify this, and pass the new CR3 value
directly.
This makes the fact that the page table happens to be at the start of
the trampoline allocation an implementation detail of the caller.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230807162720.545787-15-ardb@kernel.org
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions