grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ieee1275: claim up to 512MB memory


From: Daniel Axtens
Subject: [PATCH] ieee1275: claim up to 512MB memory
Date: Wed, 28 Oct 2020 12:38:51 +1100

If we are verifying large kernels, we need more that 32MB. (Many distro
kernels are quite large, and debug kernels can be even bigger!)

This is possibly not the way we want to go with for upstream as it breaks
booting on systems with <= 512MB. We're working on a more upstream-friendly
solution and will post it shortly. However, for an end-user or packager with
a higher minimum memory requirement, this will work fine.

Signed-off-by: Daniel Axtens <dja@axtens.net>
---
 grub-core/kern/ieee1275/init.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/grub-core/kern/ieee1275/init.c b/grub-core/kern/ieee1275/init.c
index 1d9a2b33483e..04fcb5a4ae2e 100644
--- a/grub-core/kern/ieee1275/init.c
+++ b/grub-core/kern/ieee1275/init.c
@@ -52,15 +52,13 @@
 #ifdef __i386__
 #define HEAP_MAX_SIZE          (unsigned long) (64 * 1024 * 1024)
 #else
-#define HEAP_MAX_SIZE          (unsigned long) (32 * 1024 * 1024)
+#define HEAP_MAX_SIZE          (unsigned long) (512 * 1024 * 1024)
 #endif
 
-/* If possible, we will avoid claiming heap above this address, because it
-   seems to cause relocation problems with OSes that link at 4 MiB */
 #ifdef __i386__
 #define HEAP_MAX_ADDR          (unsigned long) (64 * 1024 * 1024)
 #else
-#define HEAP_MAX_ADDR          (unsigned long) (32 * 1024 * 1024)
+#define HEAP_MAX_ADDR          (unsigned long) (512 * 1024 * 1024)
 #endif
 
 extern char _start[];
-- 
2.25.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]