Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ii4JN-0007vh-HG for mharc-grub-devel@gnu.org; Wed, 17 Oct 2007 04:31:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ii4JL-0007uO-7l for grub-devel@gnu.org; Wed, 17 Oct 2007 04:31:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ii4JH-0007oZ-Fc for grub-devel@gnu.org; Wed, 17 Oct 2007 04:31:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ii4JH-0007oQ-9z for grub-devel@gnu.org; Wed, 17 Oct 2007 04:31:23 -0400 Received: from smtp-vbr15.xs4all.nl ([194.109.24.35]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ii4JG-0006Gu-Rn for grub-devel@gnu.org; Wed, 17 Oct 2007 04:31:23 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id l9H8VLtp023018 for ; Wed, 17 Oct 2007 10:31:22 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20071016210907.GA10870@thorin> Mail-Copies-To: mgerards@xs4all.nl Date: Wed, 17 Oct 2007 10:32:28 +0200 In-Reply-To: <20071016210907.GA10870@thorin> (Robert Millan's message of "Tue, 16 Oct 2007 23:09:07 +0200") Message-ID: <87k5pmqgyr.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: [PATCH] split realmode and loader routines out of startup.S 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, 17 Oct 2007 08:31:27 -0000 Robert Millan writes: > This patch splits realmode and loader routines out of startup.S. The idea > is that the LinuxBIOS port can be adapted to share more code with the rest > of GRUB instead of duplicating it. > > This is quite critical stuff, so even if the change seems trivial I'd suggest > being careful, since I don't trust myself too much. Of course, I've tested > that it can still boot Linux and Multiboot (on qemu only). Perhaps testing > on real hardware would be appropiate (but I don't have this handy atm). Neither have I. Hopefully someone else? > 2007-10-16 Robert Millan > > * kern/i386/loader.S: New file. > > * kern/i386/pc/startup.S (grub_linux_prot_size): Moved to ... > * kern/i386/loader.S (grub_linux_prot_size): ... here. I would say: (...): Moved from here... (...): ... to here. Can you change that? > * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved to ... > * kern/i386/loader.S (grub_linux_tmp_addr): ... here. > * kern/i386/pc/startup.S (grub_linux_real_addr): Moved to ... > * kern/i386/loader.S (grub_linux_real_addr): ... here. > * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved to ... > * kern/i386/loader.S (grub_linux_boot_zimage): ... here. > * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved to ... > * kern/i386/loader.S (grub_linux_boot_bzimage): ... here. > * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved to ... > * kern/i386/loader.S (grub_multiboot_real_boot): ... here. > * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved to ... > * kern/i386/loader.S (grub_multiboot2_real_boot): ... here. > > * kern/i386/realmode.S: New file. > > * kern/i386/pc/startup.S (protstack): Moved to ... > * kern/i386/realmode.S (protstack): ... here. > * kern/i386/pc/startup.S (gdt): Moved to ... > * kern/i386/realmode.S (gdt): ... here. > * kern/i386/pc/startup.S (prot_to_real): Moved to ... > * kern/i386/realmode.S (prot_to_real): ... here. > > * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and > `kern/i386/realmode.S'. Why include? Can't it be linked? That's what a linker is for :-) Please try to fix this. -- Marco