Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1FXesc-0003B1-6e for mharc-grub-devel@gnu.org; Sun, 23 Apr 2006 09:44:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FXesa-0003Ao-Ks for grub-devel@gnu.org; Sun, 23 Apr 2006 09:44:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FXesY-0003AR-Og for grub-devel@gnu.org; Sun, 23 Apr 2006 09:43:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FXesY-0003AO-JN for grub-devel@gnu.org; Sun, 23 Apr 2006 09:43:58 -0400 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FXeuZ-0002cr-JH for grub-devel@gnu.org; Sun, 23 Apr 2006 09:46:03 -0400 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id D273C3C70504D for ; Sun, 23 Apr 2006 17:01:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id E47B53C70504C for ; Sun, 23 Apr 2006 17:01:57 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: grub-devel@gnu.org Date: Sun, 23 Apr 2006 15:43:53 +0200 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604231543.53643.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.409064, version=0.17.2 Subject: grub_exit instead of grub_stop 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, 23 Apr 2006 13:44:01 -0000 I've changed the API a bit. GRUB now uses grub_abort instead of grub_stop. Then grub_abort calls grub_exit. This is the function which must be defined in every architecture. The implementation of grub_abort is to wait for a key input, if the terminal is alive, then call grub_exit. The desirable behavior of grub_exit is to return to the firmware. For Open Firmware, I simply renamed abort to grub_exit. For PC, I try INT 18H first, and reboot if that failed. For EFI, I renamed grub_efi_exit to grub_exit. I took care of not destroying the code, but I haven't tested the Open Firmware part. If you find anything wrong, let me know. Okuji