diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2020-03-27 16:09:40 +0100 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2020-04-24 14:52:16 +0200 |
commit | 43b1df0e013c25abb536699f46d0e9f291b586a0 (patch) | |
tree | cc2415ae3b79cb9494824ba9a5ce1e7a25e39d5c /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
parent | 5d12da9dd6c155f7a09dfcaa2b9827764c939b2a (diff) |
efi/libstub: Add API function to allocate aligned memory
Break out the code to create an aligned page allocation from mem.c
and move it into a function efi_allocate_pages_aligned() in alignedmem.c.
Update efi_allocate_pages() to invoke it unless the minimum alignment
equals the EFI page size (4 KB), in which case the ordinary page
allocator is sufficient. This way, efi_allocate_pages_aligned() will
only be pulled into the build if it is actually being used (which will
be on arm64 only in the immediate future)
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions