efi: memmap: Move manipulation routines into x86 arch tree
authorArd Biesheuvel <ardb@kernel.org>
Sat, 1 Oct 2022 17:09:24 +0000 (19:09 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 18 Nov 2022 08:14:09 +0000 (09:14 +0100)
commitfdc6d38d64a20c542b1867ebeb8dd03b98829336
treee51907c7c373e89d471f8f382173278cfc0033c8
parent4059ba656ce5c13c8ca345955712152ae41420c8
efi: memmap: Move manipulation routines into x86 arch tree

The EFI memory map is a description of the memory layout as provided by
the firmware, and only x86 manipulates it in various different ways for
its own memory bookkeeping. So let's move the memmap routines that are
only used by x86 into the x86 arch tree.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/include/asm/efi.h
arch/x86/platform/efi/Makefile
arch/x86/platform/efi/memmap.c [new file with mode: 0644]
drivers/firmware/efi/memmap.c
include/linux/efi.h