grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: aout support almost working now


From: walt
Subject: Re: aout support almost working now
Date: Thu, 07 Feb 2008 05:42:04 -0800

On Thu, 2008-02-07 at 01:32 +0100, Robert Millan wrote:
> 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.

Sorry to report that this patch changes nothing :o(  Behavior is exactly
the same.

However, that particular section of code seems to be for multiboot
kernels, and the FreeBSD kernel is not multiboot (yet).  Could that
be the problem?







reply via email to

[Prev in Thread] Current Thread [Next in Thread]