Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MTgVK-0007wP-EK for mharc-grub-devel@gnu.org; Wed, 22 Jul 2009 14:25:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTgVJ-0007vf-8h for grub-devel@gnu.org; Wed, 22 Jul 2009 14:25:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTgVE-0007rJ-7v for grub-devel@gnu.org; Wed, 22 Jul 2009 14:25:24 -0400 Received: from [199.232.76.173] (port=48669 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTgVD-0007r6-R8 for grub-devel@gnu.org; Wed, 22 Jul 2009 14:25:19 -0400 Received: from c60.cesmail.net ([216.154.195.49]:45830) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1MTgVD-0006WK-8m for grub-devel@gnu.org; Wed, 22 Jul 2009 14:25:19 -0400 Received: from unknown (HELO smtprelay1.cesmail.net) ([192.168.1.111]) by c60.cesmail.net with ESMTP; 22 Jul 2009 14:25:17 -0400 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay1.cesmail.net (Postfix) with ESMTPSA id 49D5934C69 for ; Wed, 22 Jul 2009 14:25:16 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <20090722173615.GI8706@thorin> References: <80B79CE8-EF71-4B5E-BFC8-477C17756D41@gmail.com> <1248206568.3327.18.camel@mj> <20090722173615.GI8706@thorin> Content-Type: text/plain Date: Wed, 22 Jul 2009 14:25:14 -0400 Message-Id: <1248287114.10707.33.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Call a module's init function only after the module is successfully added 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: Wed, 22 Jul 2009 18:25:25 -0000 On Wed, 2009-07-22 at 19:36 +0200, Robert Millan wrote: > On Tue, Jul 21, 2009 at 04:02:48PM -0400, Pavel Roskin wrote: > > > > By the way, kern/dl.c have some unused functions (grub_dl_unload_all). > > grub_machine_fini() used to rely on this, but at some point we concluded it > wasn't useful to change machine state when loading an OS, other than things > specific to each particular loader. As I said, I missed calls in *.S files. grub_linux16_boot() and grub_chainloader_real_boot() still use it. Perhaps they shouldn't. -- Regards, Pavel Roskin