All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@suse.de>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] x86 Multiboot support (extended)
Date: Thu, 31 Jan 2008 10:58:34 +0100	[thread overview]
Message-ID: <47A19BCA.9050606@suse.de> (raw)
In-Reply-To: <C29A3C46-E00E-45C9-B054-07E1A04538B3@csgraf.de>

Hi,

I like this idea. When I just tried to load my multiboot kernel it
failed, though, because of the following piece of code:

> +    // XXX: multiboot header may be within the first 8192 bytes, but header
> +    //      is only the first 1024
> +        
> +    // Ok, let's see if it is a multiboot image
> +    for(i=0; i<(256 - 12); i+=4) { // the header is 12x32bit long
> +        if(ldl_p(header+i) == 0x1BADB002) {

I wonder if there is any reason why you didn't just replace the 1024 by
8192 in load_linux but added an XXX. Would this cause any problems I
missed? With this change and replacing 256 by 8192 in the above code it
works for my kernel, too.

Anyway, I think the for condition should be i < 4 * (256 - 12), even
without changing the 1024.

Kevin

  reply	other threads:[~2008-01-31  9:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-30 18:43 [Qemu-devel] [PATCH] x86 Multiboot support (extended) Alexander Graf
2008-01-31  9:58 ` Kevin Wolf [this message]
2008-01-31 10:19   ` Alexander Graf
2008-01-31 17:31   ` Alexander Graf
2008-02-01  8:41     ` Kevin Wolf
2008-03-11 23:44     ` Aurelien Jarno
2008-03-12  4:57       ` Anthony Liguori
2008-03-12  8:24         ` Alexander Graf
2008-03-12 14:37           ` Anthony Liguori
2008-03-12  7:32       ` Alexander Graf

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=47A19BCA.9050606@suse.de \
    --to=kwolf@suse.de \
    --cc=qemu-devel@nongnu.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.