Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JMuiC-0003RJ-Co for mharc-grub-devel@gnu.org; Wed, 06 Feb 2008 19:33:56 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMuiA-0003Px-Ve for grub-devel@gnu.org; Wed, 06 Feb 2008 19:33:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMuiA-0003PG-D1 for grub-devel@gnu.org; Wed, 06 Feb 2008 19:33:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMuiA-0003Oz-7d for grub-devel@gnu.org; Wed, 06 Feb 2008 19:33:54 -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 1JMuiA-0003QV-11 for grub-devel@gnu.org; Wed, 06 Feb 2008 19:33:54 -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 1JMui7-0003Dl-Sb for grub-devel@gnu.org; Thu, 07 Feb 2008 01:33:52 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JMugQ-0000jO-In for grub-devel@gnu.org; Thu, 07 Feb 2008 01:32:06 +0100 Date: Thu, 7 Feb 2008 01:32:06 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080207003206.GA2761@thorin> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: Re: aout support almost working now 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: Thu, 07 Feb 2008 00:33:55 -0000 On Wed, Feb 06, 2008 at 04:26:15PM -0800, walt wrote: > >diff --git a/kern/i386/loader.S b/kern/i386/loader.S > >index 266f4ef..88f3045 100644 > >--- a/kern/i386/loader.S > >+++ b/kern/i386/loader.S > >@@ -137,6 +137,7 @@ FUNCTION(grub_multiboot_real_boot) > > cli > > > > /* Move the magic value into eax and jump to the kernel. */ > >+ movl $0x80, %edx > > movl $MULTIBOOT_MAGIC2,%eax > > popl %ecx > > jmp *%ecx > >@@ -159,6 +160,7 @@ FUNCTION(grub_multiboot2_real_boot) > > cli > > > > /* Move the magic value into eax and jump to the kernel. */ > >+ movl $0x80, %edx > > movl $MULTIBOOT2_BOOTLOADER_MAGIC,%eax > > popl %ecx > > jmp *%ecx > > > >Please note that this is not a proper patch, it assume booting from > >the (hd0,0,a). you can adjust the value of %edx if you boot from other > >partition. > > Sorry, I don't know what adjustment to make. I did find a macro for > MULTIBOOT_INFO_DISK_INFO but it's never actually used anywhere :o/ > > I'm trying to load (hd0,3,a) -- can you show me the right value for %edx ? If he guessed right, you don't need to do anything special, and 0x80 will work for you. The patch is not correct because it breaks setups in which boot disk is not the first one. But that doesn't seem to affect you. -- 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 /.)