ieee1275: claim up to 512MB memory
PATCH 1/1 ieee1275: claim up to 512MB memory
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 <[email protected]>
--- grub-core/kern/ieee1275/init.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
grub-core/kern/ieee1275/init.c +2 -4
@@ -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[];
Signature · 1 line
2.25.1