Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1D1ABt-0001i9-W3 for mharc-grub-devel@gnu.org; Tue, 15 Feb 2005 16:25:06 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D1ABs-0001hI-4E for grub-devel@gnu.org; Tue, 15 Feb 2005 16:25:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D1ABr-0001go-6Q for grub-devel@gnu.org; Tue, 15 Feb 2005 16:25:03 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1AAr-00019O-Ot for grub-devel@gnu.org; Tue, 15 Feb 2005 16:24:02 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D19ap-0001mO-19 for grub-devel@gnu.org; Tue, 15 Feb 2005 15:46:47 -0500 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 72DF7847F for ; Tue, 15 Feb 2005 21:40:58 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.11]) by vscan-cn.han.nl (venus.han.nl [145.74.65.6]) (amavisd-new, port 10024) with ESMTP id 26981-04 for ; Tue, 15 Feb 2005 21:40:56 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 8053A8429 for ; Tue, 15 Feb 2005 21:40:56 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 45AC5C046 for ; Tue, 15 Feb 2005 21:40:56 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <200502150115.56867.okuji@enbug.org> From: Marco Gerards Date: Tue, 15 Feb 2005 20:41:12 +0000 In-Reply-To: <200502150115.56867.okuji@enbug.org> (Yoshinori K. Okuji's message of "Tue, 15 Feb 2005 01:15:56 +0100") Message-ID: <87k6p9y2s7.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (2.2.0) at vscan-cn.han.nl Subject: Re: 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 21:25:04 -0000 "Yoshinori K. Okuji" writes: > 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. This sounds useful. On the PPC this should be used to free memory, I think. I don't think this is required for linux, so it is not implemented yet. > 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-\). In that case, I assume, all memory should have been free'ed. If valgrind would work for grub-emu we could make sure that there are no memory leaks. Valgrind does not work because of this bug: http://bugs.kde.org/show_bug.cgi?id=69511 If someone can get some memory tester to work with grub-emu, I will be very happy. I did not succeed in getting something to work yet. Thanks, Marco