diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2025-01-12 15:56:46 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2025-02-21 18:54:21 +0300 |
commit | ff38bbbac39eade57e4672f9601f602ed8d4b493 (patch) | |
tree | 557c2febff97efea2cd63cf21e72addcc92dd05d /tools/perf/scripts/python/mem-phys-addr.py | |
parent | eaed89559591f73ca06a3e6534c381e3bd948ee6 (diff) | |
download | linux-ff38bbbac39eade57e4672f9601f602ed8d4b493.tar.xz |
x86/efi/mixed: Factor out and clean up long mode entry
Entering long mode involves setting the EFER_LME and CR4.PAE bits before
enabling paging by setting CR0.PG bit.
It also involves disabling interrupts, given that the firmware's 32-bit
IDT becomes invalid as soon as the CPU transitions into long mode.
Reloading the CR3 register is not necessary at boot time, given that the
EFI firmware as well as the kernel's EFI stub use a 1:1 mapping of the
32-bit addressable memory in the system.
Break out this code into a separate helper for clarity, and so that it
can be reused in a subsequent patch.
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions