]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/efi/mixed: Set up 1:1 mapping of lower 4GiB in the stub
authorArd Biesheuvel <ardb@kernel.org>
Wed, 5 Feb 2025 11:23:21 +0000 (12:23 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 21 Feb 2025 15:54:27 +0000 (16:54 +0100)
commitd545e182a8bb37bce3c00d89ab88e33414add1c3
tree1ad097ddfa64ddf9a07e96c69a90dec33a21b798
parentff38bbbac39eade57e4672f9601f602ed8d4b493
x86/efi/mixed: Set up 1:1 mapping of lower 4GiB in the stub

In preparation for dropping the dependency on startup_32 entirely in the
next patch, add the code that sets up the 1:1 mapping of the lower 4 GiB
of system RAM to the mixed mode stub.

The reload of CR3 after the long mode switch will be removed in a
subsequent patch, when it is no longer needed.

Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/boot/compressed/efi_mixed.S