diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2025-01-07 19:55:07 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2025-02-21 18:54:31 +0300 |
commit | 6e2da8d87c9c1133d8d6e1f93a0bc0c416dbc8ee (patch) | |
tree | c892a1ec5825bb87193ab0ae4e6b5ffac5582efc /tools/perf/scripts/python/mem-phys-addr.py | |
parent | d545e182a8bb37bce3c00d89ab88e33414add1c3 (diff) | |
download | linux-6e2da8d87c9c1133d8d6e1f93a0bc0c416dbc8ee.tar.xz |
x86/efi/mixed: Remove dependency on legacy startup_32 code
The EFI mixed mode startup code calls into startup_32 in the legacy
decompressor with a mocked up boot_params struct, only to get it to set
up the 1:1 mapping of the lower 4 GiB of memory and switch to a GDT that
supports 64-bit mode.
In order to be able to reuse the EFI mixed mode startup code in EFI
zboot images, which do not incorporate the legacy decompressor code,
decouple it, by dealing with the GDT and IDT directly.
Doing so makes it possible to construct a GDT that is compatible with
the one the firmware uses, with one additional entry for a 64-bit mode
code segment appended. This removes the need entirely to switch between
GDTs and IDTs or data segment selector values and all of this code can
be removed.
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