From: walt <wa1ter@myrealbox.com>
To: grub-devel@gnu.org
Subject: Re: aout support almost working now
Date: Thu, 07 Feb 2008 05:42:04 -0800 [thread overview]
Message-ID: <1202391724.517.7.camel@k9.localnet> (raw)
In-Reply-To: <20080207003206.GA2761@thorin>
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?
prev parent reply other threads:[~2008-02-07 13:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-06 19:23 aout support almost working now walt
2008-02-06 19:48 ` Bean
2008-02-07 0:26 ` walt
2008-02-07 0:32 ` Robert Millan
2008-02-07 13:42 ` walt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1202391724.517.7.camel@k9.localnet \
--to=wa1ter@myrealbox.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.