This patch reimplements grub_exit() portably as a wrapper. The exit
client service is defined in IEEE-1275.
Anyway, just to be sure: Please, can someone test my patch to check it
won't break on Apple, IBM... ?
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
* kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
for grub_ieee1275_exit(), in order to improve portability.
--- ../../grub2/kern/powerpc/ieee1275/init.c 2008-01-03 23:43:46.000000000 +0100
+++ ./kern/powerpc/ieee1275/init.c 2008-01-13 20:20:50.000000000 +0100
@@ -55,10 +55,7 @@ grub_millisleep (grub_uint32_t ms)
void
grub_exit (void)
{
- /* Trap to Open Firmware. */
- asm ("trap");
-
- for (;;);
+ grub_ieee1275_exit ();
}
/* Translate an OF filesystem path (separated by backslashes), into a GRUB
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel