summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-09-17 20:36:46 +0000
committerjhb <jhb@FreeBSD.org>2015-09-17 20:36:46 +0000
commit6471c2fc7c1fced2b5d2073b1629aa76588c61e2 (patch)
tree7216f097f89aa1dc17d6d870ae44a4f44da412bd /sys/boot
parent7d2c7a279026bf4b73440ebe484f74cf4dba50c5 (diff)
downloadFreeBSD-src-6471c2fc7c1fced2b5d2073b1629aa76588c61e2.zip
FreeBSD-src-6471c2fc7c1fced2b5d2073b1629aa76588c61e2.tar.gz
The EFI boot loader allocates a single chunk of contiguous memory to
hold the kernel, modules, and any other loaded data. This memory block is relocated to the kernel's expected location during the transfer of control from the loader to the kernel. The GENERIC kernel on amd64 has recently grown such that a kernel + zfs.ko no longer fits in the default staging size. Bump the default size from 32MB to 48MB to provide more breathing room. PR: 201679 Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D3666
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/efi/loader/copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/efi/loader/copy.c b/sys/boot/efi/loader/copy.c
index 10f4cb2..3d42d7e 100644
--- a/sys/boot/efi/loader/copy.c
+++ b/sys/boot/efi/loader/copy.c
@@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$");
#include <efilib.h>
#ifndef EFI_STAGING_SIZE
-#define EFI_STAGING_SIZE 32
+#define EFI_STAGING_SIZE 48
#endif
#define STAGE_PAGES ((EFI_STAGING_SIZE) * 1024 * 1024 / 4096)
OpenPOWER on IntegriCloud