From 4f132b92f672494dca27cd382418d7688e62c76b Mon Sep 17 00:00:00 2001 From: thj Date: Sat, 17 Aug 2019 06:47:43 +0000 Subject: [PATCH] Reduce size of EFI_STAGING_SIZE to 32 on arm Reduce the size of the EFI_STAGING area we allocate on arm to 32. On arm SBC such as the NanoPi-NEOLTS the staging area allocation will fail on the 256MB model with a staging size of 64. Reviewed by: bcran, manu Approved by: bz (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D21016 --- stand/efi/loader/copy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stand/efi/loader/copy.c b/stand/efi/loader/copy.c index e134c22c091e..d42c5e08ee48 100644 --- a/stand/efi/loader/copy.c +++ b/stand/efi/loader/copy.c @@ -178,6 +178,8 @@ efi_verify_staging_size(unsigned long *nr_pages) #ifndef EFI_STAGING_SIZE #if defined(__amd64__) #define EFI_STAGING_SIZE 100 +#elif defined(__arm__) +#define EFI_STAGING_SIZE 32 #else #define EFI_STAGING_SIZE 64 #endif