diff options
author | 2021-01-19 15:16:27 +0100 | |
---|---|---|
committer | 2021-01-19 17:57:16 +0100 | |
commit | 3e1e00c00e2b9b5c9a2f47f1c67720a5d430e4d0 (patch) | |
tree | 2dc5f53b3bee45b42c43d7b9e43a871b8ee1719b /arch/x86/platform/efi/efi_64.c | |
parent | efi/libstub: move TPM related prototypes into efistub.h (diff) | |
download | linux-3e1e00c00e2b9b5c9a2f47f1c67720a5d430e4d0.tar.gz linux-3e1e00c00e2b9b5c9a2f47f1c67720a5d430e4d0.tar.bz2 linux-3e1e00c00e2b9b5c9a2f47f1c67720a5d430e4d0.zip |
efi: x86: move mixed mode stack PA variable out of 'efi_scratch'
As a first step to removing the awkward 'struct efi_scratch' definition
that conveniently combines the storage of the mixed mode stack pointer
with the MM pointer variable that records the task's MM pointer while it
is being replaced with the EFI MM one, move the mixed mode stack pointer
into a separate variable.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'arch/x86/platform/efi/efi_64.c')
-rw-r--r-- | arch/x86/platform/efi/efi_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c index e1e8d4e3a213..1d904181e6a1 100644 --- a/arch/x86/platform/efi/efi_64.c +++ b/arch/x86/platform/efi/efi_64.c @@ -256,7 +256,7 @@ int __init efi_setup_page_tables(unsigned long pa_memmap, unsigned num_pages) return 1; } - efi_scratch.phys_stack = page_to_phys(page + 1); /* stack grows down */ + efi_mixed_mode_stack_pa = page_to_phys(page + 1); /* stack grows down */ npages = (_etext - _text) >> PAGE_SHIFT; text = __pa(_text); |