]> Git Repo - linux.git/commit
efi: Make code to find mirrored memory ranges generic
authorMa Wupeng <[email protected]>
Tue, 14 Jun 2022 09:21:52 +0000 (17:21 +0800)
committerArd Biesheuvel <[email protected]>
Wed, 15 Jun 2022 10:11:19 +0000 (12:11 +0200)
commit6365a1935c5151455812e96d8de434c551dc0d98
tree38866d9dd01dbfe2d82b4eada37e356064f591d0
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
efi: Make code to find mirrored memory ranges generic

Commit b05b9f5f9dcf ("x86, mirror: x86 enabling - find mirrored memory
ranges") introduce the efi_find_mirror() function on x86. In order to reuse
the API we make it public.

Arm64 can support mirrored memory too, so function efi_find_mirror() is added to
efi_init() to this support for arm64.

Since efi_init() is shared by ARM, arm64 and riscv, this patch will bring
mirror memory support for these architectures, but this support is only tested
in arm64.

Signed-off-by: Ma Wupeng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ardb: fix subject to better reflect the payload]
Acked-by: Mike Rapoport <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
arch/x86/include/asm/efi.h
arch/x86/platform/efi/efi.c
drivers/firmware/efi/efi-init.c
drivers/firmware/efi/efi.c
include/linux/efi.h
This page took 0.086535 seconds and 4 git commands to generate.