From 94e8f7c65f1580210bb4e95738fe72c3ddc7eb1e Mon Sep 17 00:00:00 2001 From: Rebecca Cran Date: Thu, 27 Jun 2019 22:06:41 +0000 Subject: [PATCH] Increase EFI_STAGING_SIZE to 100MB on x64 To avoid failures when the large 18MB nvidia.ko module is being loaded, increase EFI_STAGING_SIZE from 64MB to 100MB on x64 systems. Leave the other platforms at 64MB. --- stand/efi/loader/copy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stand/efi/loader/copy.c b/stand/efi/loader/copy.c index a19b048c9beb..e134c22c091e 100644 --- a/stand/efi/loader/copy.c +++ b/stand/efi/loader/copy.c @@ -176,8 +176,12 @@ efi_verify_staging_size(unsigned long *nr_pages) #endif /* __i386__ || __amd64__ */ #ifndef EFI_STAGING_SIZE +#if defined(__amd64__) +#define EFI_STAGING_SIZE 100 +#else #define EFI_STAGING_SIZE 64 #endif +#endif EFI_PHYSICAL_ADDRESS staging, staging_end; int stage_offset_set = 0;