Searched hist:"43 b1df0e013c25abb536699f46d0e9f291b586a0" (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | alignedmem.c | 43b1df0e013c25abb536699f46d0e9f291b586a0 Fri Mar 27 10:09:40 CDT 2020 Ard Biesheuvel <ardb@kernel.org> 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>
|
H A D | mem.c | diff 43b1df0e013c25abb536699f46d0e9f291b586a0 Fri Mar 27 10:09:40 CDT 2020 Ard Biesheuvel <ardb@kernel.org> 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>
|
H A D | efistub.h | diff 43b1df0e013c25abb536699f46d0e9f291b586a0 Fri Mar 27 10:09:40 CDT 2020 Ard Biesheuvel <ardb@kernel.org> 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>
|
H A D | Makefile | diff 43b1df0e013c25abb536699f46d0e9f291b586a0 Fri Mar 27 10:09:40 CDT 2020 Ard Biesheuvel <ardb@kernel.org> 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>
|