Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JHlly-0001SY-7F for mharc-grub-devel@gnu.org; Wed, 23 Jan 2008 15:00:34 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHllv-0001PJ-Uc for grub-devel@gnu.org; Wed, 23 Jan 2008 15:00:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHllu-0001LX-A5 for grub-devel@gnu.org; Wed, 23 Jan 2008 15:00:31 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHllu-0001LK-1o for grub-devel@gnu.org; Wed, 23 Jan 2008 15:00:30 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JHllt-0002Tr-M5 for grub-devel@gnu.org; Wed, 23 Jan 2008 15:00:29 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JHllq-0005pS-NZ for grub-devel@gnu.org; Wed, 23 Jan 2008 21:00:28 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JHlk7-0006U7-Ty for grub-devel@gnu.org; Wed, 23 Jan 2008 20:58:39 +0100 Date: Wed, 23 Jan 2008 20:58:39 +0100 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20080123195839.GA24785@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: grub_dl_unload_all() 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, 23 Jan 2008 20:00:32 -0000 Is GRUB supposed to always call grub_dl_unload_all() when preparing to jump into a loaded multiboot image? My problem: - On i386-pc, multiboot2 loader calls grub_multiboot2_real_boot(), which in turn calls grub_dl_unload_all(), thereby unloading all modules (and I assume, calling all _fini() routines). - On powerpc-ieee1275, multiboot2 loader calls the entry right away, without unloading modules. In fact, it CANNOT unload them because it may have just overwritten them when loading the image to the arbitrary address it has requested. - On i386-ieee1275, the sanest choice was to follow powerpc-ieee1275 and claim the region that our payload image requests (see loader/powerpc/ieee1275/multiboot2.c). However, this implies inability to unload all modules. How important is it to unload all modules? What do you suggest? Do we fix everything to unload all modules (is that even possible?)? Do we unload all modules on i386-pc "because we can" and not do this on ieee1275 platforms? -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)