linux-stable/arch/x86/platform/efi
Matt Fleming 78ce248faa efi: Iterate over efi.memmap in for_each_efi_memory_desc()
Most of the users of for_each_efi_memory_desc() are equally happy
iterating over the EFI memory map in efi.memmap instead of 'memmap',
since the former is usually a pointer to the latter.

For those users that want to specify an EFI memory map other than
efi.memmap, that can be done using for_each_efi_memory_desc_in_map().
One such example is in the libstub code where the firmware is queried
directly for the memory map, it gets iterated over, and then freed.

This change goes part of the way toward deleting the global 'memmap'
variable, which is not universally available on all architectures
(notably IA64) and is rather poorly named.

Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Mark Salter <msalter@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/1461614832-17633-7-git-send-email-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2016-04-28 11:33:50 +02:00
..
early_printk.c x86/efi: earlyprintk=efi,keep fix 2014-05-03 06:39:06 +01:00
efi-bgrt.c x86/efi/bgrt: Don't ignore the BGRT if the 'valid' bit is 0 2016-02-03 11:41:19 +01:00
efi.c efi: Iterate over efi.memmap in for_each_efi_memory_desc() 2016-04-28 11:33:50 +02:00
efi_32.c x86/efi: Map EFI_MEMORY_{XP,RO} memory region bits to EFI page tables 2016-02-22 08:26:28 +01:00
efi_64.c efi: Iterate over efi.memmap in for_each_efi_memory_desc() 2016-04-28 11:33:50 +02:00
efi_stub_32.S x86/efi: Mark initialization code as such 2014-10-03 18:41:03 +01:00
efi_stub_64.S Merge branch 'efi-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-03-20 18:58:18 -07:00
efi_thunk_64.S x86/efi: Avoid triple faults during EFI mixed mode calls 2015-02-13 15:42:56 +00:00
Makefile objtool: Mark non-standard object files and directories 2016-02-29 08:35:02 +01:00
quirks.c efi: Iterate over efi.memmap in for_each_efi_memory_desc() 2016-04-28 11:33:50 +02:00