Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Kck4u-0000TV-0f for mharc-grub-devel@gnu.org; Mon, 08 Sep 2008 12:59:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kck4r-0000Pj-OB for grub-devel@gnu.org; Mon, 08 Sep 2008 12:59:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kck4r-0000Nk-0M for grub-devel@gnu.org; Mon, 08 Sep 2008 12:59:01 -0400 Received: from [199.232.76.173] (port=33714 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kck4q-0000NS-Jw for grub-devel@gnu.org; Mon, 08 Sep 2008 12:59:00 -0400 Received: from c60.cesmail.net ([216.154.195.49]:62874) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1Kck4q-0007fc-0Y for grub-devel@gnu.org; Mon, 08 Sep 2008 12:59:00 -0400 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 08 Sep 2008 13:02:45 -0400 Received: from [192.168.0.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id C89FE4F1869 for ; Mon, 8 Sep 2008 12:58:58 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <20080908141106.GA22963@thorin> References: <20080908141106.GA22963@thorin> Content-Type: text/plain Date: Mon, 08 Sep 2008 12:58:57 -0400 Message-Id: <1220893137.17498.14.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [RFC] halt --no-apm 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: Mon, 08 Sep 2008 16:59:02 -0000 On Mon, 2008-09-08 at 16:11 +0200, Robert Millan wrote: > Hi, > > I'm confused as to what "halt --no-apm" could be useful for. The code in > startup.S seems to check for APM before using it. Is there any reason why > users would want an infin loop even when power-off is possible? I guess the intention was to have a backup option if APM misbehaves, e.g. reboots the system or puts it to a busy loop with 100% CPU utilization. By the way, I think we should use "cli" before entering the final loop, so that the interrupts don't wake up the CPU while it's waiting in "hlt". > Unfortunately it makes grub_halt() and all the code surrounding it less > portable, and for example it prevents unification of grub-emu declarations > in *.rmk. > > If we really want to support "halt" as a command to bring GRUB to infin > loop, why not make this generic and support the same on all implementations > of grub_halt() ? I think we want "halt" to turn off the system if possible, or put it to the lowest power state. It's meant a fallback option when the OS cannot be booted. If that means that "halt" should be system specific, so be it. The fallback code could be shared on i386, but it's so short I doubt it's worth the trouble. -- Regards, Pavel Roskin