commit-grub
[Top][All Lists]
Advanced

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

[2668] 2009-10-28 Robert Millan <address@hidden>


From: Robert Millan
Subject: [2668] 2009-10-28 Robert Millan <address@hidden>
Date: Wed, 28 Oct 2009 22:02:57 +0000

Revision: 2668
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2668
Author:   robertmh
Date:     2009-10-28 22:02:54 +0000 (Wed, 28 Oct 2009)
Log Message:
-----------
2009-10-28  Robert Millan  <address@hidden>

        * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
        doesn't cause an infinite call loop.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/kern/i386/coreboot/init.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-10-28 18:24:10 UTC (rev 2667)
+++ trunk/grub2/ChangeLog       2009-10-28 22:02:54 UTC (rev 2668)
@@ -1,3 +1,8 @@
+2009-10-28  Robert Millan  <address@hidden>
+
+       * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
+       doesn't cause an infinite call loop.
+
 2009-10-28  Felix Zielcke  <address@hidden>
 
        * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error

Modified: trunk/grub2/kern/i386/coreboot/init.c
===================================================================
--- trunk/grub2/kern/i386/coreboot/init.c       2009-10-28 18:24:10 UTC (rev 
2667)
+++ trunk/grub2/kern/i386/coreboot/init.c       2009-10-28 22:02:54 UTC (rev 
2668)
@@ -62,7 +62,10 @@
 void
 grub_exit (void)
 {
-  grub_fatal ("grub_exit() is not implemented.\n");
+  /* We can't use grub_fatal() in this function.  This would create an infinite
+     loop, since grub_fatal() calls grub_abort() which in turn calls 
grub_exit().  */
+  while (1)
+    grub_cpu_idle ();
 }
 
 void





reply via email to

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