From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LUgYU-00023M-9B for mharc-grub-devel@gnu.org; Wed, 04 Feb 2009 07:08:34 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUgYR-00022q-2M for grub-devel@gnu.org; Wed, 04 Feb 2009 07:08:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUgYQ-00022c-9l for grub-devel@gnu.org; Wed, 04 Feb 2009 07:08:30 -0500 Received: from [199.232.76.173] (port=54604 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUgYQ-00022Z-77 for grub-devel@gnu.org; Wed, 04 Feb 2009 07:08:30 -0500 Received: from fg-out-1718.google.com ([72.14.220.155]:12970) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUgYP-0006Fh-Sw for grub-devel@gnu.org; Wed, 04 Feb 2009 07:08:30 -0500 Received: by fg-out-1718.google.com with SMTP id l27so1346467fgb.30 for ; Wed, 04 Feb 2009 04:08:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=NuvuCpUnd8uSXBrbpxPm2TambGaB6p0FRT9TxiL+XBk=; b=GOnaO+A0v63lxZyvFHYAfkKt7bHSkcmoARkWq+g6ASgCPSFU5USG0p3k7aPYJi7PQJ fJrH/Z0Algm5PYvd0SRkM+Dj9eTLflzUhXxOb7r409kkjjHeGy08enNy2rVukhrO4361 6FZqzFe4OEYGqJS0Ze6L0SHd2mVNgSvSFylWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=flBwnZw7/GRTniXa0oI4CZYTrudpru0IT3kMneKVQlyEs8sVscpS7YdPKuPb1pHLPE Nh2BwS+GoxqBXSDIELqCeD7nNe+00A76qqhzFDvyhWACi1TiNupJ1pZmlePUReScx8uF 9DzgbtMzx/0XWO0uFkwaCzZE7M2k1IadtNLks= Received: by 10.86.80.5 with SMTP id d5mr3515268fgb.39.1233749309590; Wed, 04 Feb 2009 04:08:29 -0800 (PST) Received: from ?192.168.1.25? (119-114.62-81.cust.bluewin.ch [81.62.114.119]) by mx.google.com with ESMTPS id e20sm1892938fga.46.2009.02.04.04.08.28 (version=SSLv3 cipher=RC4-MD5); Wed, 04 Feb 2009 04:08:28 -0800 (PST) Message-ID: <4989853A.2020700@gmail.com> Date: Wed, 04 Feb 2009 13:08:26 +0100 From: phcoder User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: The development of GRUB 2 References: <4981D1D4.2080102@gmail.com> In-Reply-To: <4981D1D4.2080102@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Move BSD and multiboot boot helper out of the kernel to their respective modules 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, 04 Feb 2009 12:08:31 -0000 Hello. On the IRC discussion it was said that removing call to grub_dl_unload_all_modules isn't a good thing. I would like to discuss this on the list 1) Call to this functon is present only on i386-pc 2) I would suggest an interface for preboot hooks if modules needs to do something before booting 3) If it's really needed to unload modules one could add a function grub_dl_unload_all_modules_except (grub_dl_t *mod) Then the module before booting kernel would call this function and after it no external calls are allowed. 4) Not being able to add a new kernel type by module alone is IMHO a severe limitation to module infrastructure Thanks Vladimir 'phcoder' Serbinenko phcoder wrote: > Hello, I was looking through the code and have seen that bsd and > multiboot code uses helpers in the kernel. In this patch I propose to > move these function to their respective modules > Thanks > Vladimir 'phcoder' Serbinenko >