bug-grub
[Top][All Lists]
Advanced

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

[bug #29582] Grub Fails free magic error when present with hardware raid


From: Vladimir Serbinenko
Subject: [bug #29582] Grub Fails free magic error when present with hardware raid logical drive
Date: Sat, 17 Apr 2010 15:04:34 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20091216 Iceweasel/3.5.8 (like Firefox/3.5.8)

Follow-up Comment #1, bug #29582 (project grub):

How much RAM do you have? It looks like either BIOS supplies a wrong memory
map or corrupts a high memory. Try applying the following patch:

=== modified file 'kern/i386/pc/init.c'
--- kern/i386/pc/init.c 2010-02-06 23:52:31 +0000
+++ kern/i386/pc/init.c 2010-04-17 15:04:04 +0000
@@ -178,12 +178,12 @@
        }
 
       /* Ignore >4GB.  */
-      if (addr <= 0xFFFFFFFF && type == GRUB_MACHINE_MEMORY_AVAILABLE)
+      if (addr <= 0x7FFFFFFF && type == GRUB_MACHINE_MEMORY_AVAILABLE)
        {
          grub_size_t len;
 
-         len = (grub_size_t) ((addr + size > 0xFFFFFFFF)
-                ? 0xFFFFFFFF - addr
+         len = (grub_size_t) ((addr + size > 0x7FFFFFFF)
+                ? 0x7FFFFFFF - addr
                 : size);
          add_mem_region (addr, len);
        }



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29582>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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