Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KKPZ6-0007cp-Gk for mharc-grub-devel@gnu.org; Sat, 19 Jul 2008 23:26:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKPZ5-0007b1-3t for grub-devel@gnu.org; Sat, 19 Jul 2008 23:26:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKPZ3-0007Yt-KY for grub-devel@gnu.org; Sat, 19 Jul 2008 23:26:26 -0400 Received: from [199.232.76.173] (port=47923 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKPZ3-0007YX-ET for grub-devel@gnu.org; Sat, 19 Jul 2008 23:26:25 -0400 Received: from ti-out-0910.google.com ([209.85.142.189]:35826) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KKPZ3-0000v4-7b for grub-devel@gnu.org; Sat, 19 Jul 2008 23:26:25 -0400 Received: by ti-out-0910.google.com with SMTP id u5so512403tia.10 for ; Sat, 19 Jul 2008 20:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UOKMz76lMSFxaupW9UV3N7EwoNlTIhTFGis1+G1EBgo=; b=NQDxZkcmSP6jFHSJiXTmv6BFaCan4zTwbSNDJXAZ+kKyzqJGdlYUT0uaq735L/yGNr Np2pSuWj2wKyRcqQMyMDPV/RyI2gdpUcd62VkiaJvpx56RfmC6PAmTYxaj3EslxB0Q82 EBFQl/Iryk9n1v/48QmHAbr2YowqkFxo2//9o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=psSjK4IGsIcpTY+UCr+PStkl5Gw6ow7iywuLqT1mngHuudnS4GjUxBeh9qfjDGwpzX lRjGXccfv2YNJ4Jx3k9pRo3a27LVXOzTZ13g4pR/WuBFB8DuvgTMd9qED7rw1OTH359S wy4BcVMHtWJVxsQAfFxJurr4tv2724wY8xVy4= Received: by 10.110.10.16 with SMTP id 16mr2040840tij.15.1216524383026; Sat, 19 Jul 2008 20:26:23 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Sat, 19 Jul 2008 20:26:22 -0700 (PDT) Message-ID: Date: Sun, 20 Jul 2008 11:26:23 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <20080719230622.GA17043@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080719230622.GA17043@thorin> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: loader modules jumping back to kernel 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: Sun, 20 Jul 2008 03:26:27 -0000 On Sun, Jul 20, 2008 at 7:06 AM, Robert Millan wrote: > > Anyone recalls the reason our loaders had to jump back to kernel (startup.S) to > do the final part of the load? > > IIRC this causes trouble when the loadee chose an address that precisely > overwrites the loader, which is garanteed to happen when GRUB is loading > itself, AFAICT. Hi, I think there is no appear reason for this other than to keep assembly code in a single place. IMO, a lot of stuff should be moved out of startup.S. For example, vbe functions are only used by vbe module, they should be placed alongside other vbe files. -- Bean