Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1D2uKP-0004qx-9i for mharc-grub-devel@gnu.org; Sun, 20 Feb 2005 11:53:05 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D2uKM-0004pE-NY for grub-devel@gnu.org; Sun, 20 Feb 2005 11:53:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D2uKK-0004nY-Tb for grub-devel@gnu.org; Sun, 20 Feb 2005 11:53:01 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D2uKK-0004my-JJ for grub-devel@gnu.org; Sun, 20 Feb 2005 11:53:00 -0500 Received: from [209.86.89.64] (helo=smtpauth04.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D2u6i-0004zc-EO for grub-devel@gnu.org; Sun, 20 Feb 2005 11:38:56 -0500 Received: from [63.246.184.80] (helo=[192.168.0.100]) by smtpauth04.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1D2u6i-0000mg-0E for grub-devel@gnu.org; Sun, 20 Feb 2005 11:38:56 -0500 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <200502201439.20815.okuji@enbug.org> References: <20050219233439.GA17519@miracle> <200502201439.20815.okuji@enbug.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <346f53d6be98efc620fc845c6407a0cf@penguinppc.org> Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Sun, 20 Feb 2005 10:38:54 -0600 To: The development of GRUB 2 X-Mailer: Apple Mail (2.619.2) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec79507aa9e1de0241c7888b7a9ae2171da3350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 Subject: Re: [patch] PPC build fixes X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2005 16:53:03 -0000 On Feb 20, 2005, at 7:39 AM, Yoshinori K. Okuji wrote: > On Sunday 20 February 2005 00:34, Hollis Blanchard wrote: >> - grub_reboot and grub_halt in util/i386/pc/misc.c are not >> architecture-specific, so have been moved to util/grub-emu.c. > > grub_halt is clearly arch-specific. Look at the definition grub_halt in > PC. It takes one argument, while the PPC version does not. I expect > that the same thing might happen in grub_reboot as well. Oops, I meant to convert that into using a more generic "flags" argument, and then "no_apm" becomes one bit in it. How would that be? --- util/grub-emu.c 15 Feb 2005 00:07:01 -0000 1.15 +++ util/grub-emu.c 20 Feb 2005 16:36:49 -0000 @@ -73,6 +73,18 @@ grub_arch_dl_relocate_symbols (grub_dl_t } void +grub_reboot (void) +{ + longjmp (main_env, 1); +} + +void +grub_halt (grub_uint32_t flags __attribute__ ((unused))) +{ + grub_reboot (); +} + +void grub_machine_init (void) { signal (SIGINT, SIG_IGN); -Hollis