]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
multiboot1: never place modules in low memory.
authorVladimir Serbinenko <phcoder@gmail.com>
Wed, 27 May 2015 06:37:55 +0000 (08:37 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Wed, 27 May 2015 06:41:39 +0000 (08:41 +0200)
While in theory permitted by the spec, modules rarely fit in low memory
anyway and not every kernel is able to handle modules in low memory anyway.
At least VMWare is known not to be able to handle modules at arbitrary
locations.

grub-core/loader/multiboot.c

index 4b71f33635349eb8dec7181d05f698539ec8f00f..fd8f28e21a113bb7032039cf6f59b58233bec129 100644 (file)
@@ -333,6 +333,7 @@ grub_cmd_module (grub_command_t cmd __attribute__ ((unused)),
     return grub_errno;
 
 #ifndef GRUB_USE_MULTIBOOT2
+  lowest_addr = 0x100000;
   if (grub_multiboot_quirks & GRUB_MULTIBOOT_QUIRK_MODULES_AFTER_KERNEL)
     lowest_addr = ALIGN_UP (highest_load + 1048576, 4096);
 #endif