Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1D0qxV-00022A-Md for mharc-grub-devel@gnu.org; Mon, 14 Feb 2005 19:52:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D0qxT-000218-Rb for grub-devel@gnu.org; Mon, 14 Feb 2005 19:52:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D0qxT-00020f-6H for grub-devel@gnu.org; Mon, 14 Feb 2005 19:52:55 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0qwx-0001Yv-DX for grub-devel@gnu.org; Mon, 14 Feb 2005 19:52:23 -0500 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D0qMb-00018r-6y for grub-devel@gnu.org; Mon, 14 Feb 2005 19:14:49 -0500 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id B65C1FE9DE07 for ; Tue, 15 Feb 2005 01:14:48 +0100 (CET) Received: from 127.0.0.1 ([127.0.0.1] helo=localhost) by ASSP-nospam ; 15 Feb 05 00:14:48 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: grub-devel@gnu.org Date: Tue, 15 Feb 2005 01:15:56 +0100 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502150115.56867.okuji@enbug.org> Subject: grub_machine_fini 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: Tue, 15 Feb 2005 00:52:56 -0000 I added a new function grub_machine_fini which is an arch-specific function. This function is not called automatically, and used only for grub-emu at the moment. I implemented this function for grub-emu and PC. This function should be implemented for all architectures, and should be called before GRUB exits. I think it is unnecessary to call this function from reboot or halt, because the machine should be reset completely in this case. So this should be called maybe only from boot. BTW, I disabled SIGINT in grub-emu, because I wanted to let grub-emu catch C-c. When you want to quit grub-emu, you can use halt or reboot (or C-\). Okuji