qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: adam@os.inf.tu-dresden.de
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 1/2] multiboot: Fix cmdline of modules
Date: Sun, 11 Oct 2009 15:48:40 +0200	[thread overview]
Message-ID: <1255268921-5403-1-git-send-email-adam@os.inf.tu-dresden.de> (raw)

From: Adam Lackorzynski <adam@os.inf.tu-dresden.de>

Fix address specified for cmdline value of module in multiboot structure.

Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
---
 hw/pc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/pc.c b/hw/pc.c
index 19bef49..e34ad9c 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -710,7 +710,7 @@ static int load_multiboot(void *fw_cfg,
             pstrcpy((char*)bootinfo + mb_mod_cmdline,
                     sizeof(bootinfo) - mb_mod_cmdline,
                     initrd_filename);
-            stl_p(bootinfo + mb_mod_info + 8, mb_mod_cmdline); /* string */
+            stl_p(bootinfo + mb_mod_info + 8, mb_bootinfo + mb_mod_cmdline); /* string */
             mb_mod_cmdline += strlen(initrd_filename) + 1;
             if (mb_mod_cmdline > sizeof(bootinfo))
                 mb_mod_cmdline = sizeof(bootinfo);
-- 
1.6.4.3

             reply	other threads:[~2009-10-11 13:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-11 13:48 adam [this message]
2009-10-11 13:48 ` [Qemu-devel] [PATCH 2/2] multiboot: Limit number of multiboot modules adam
2009-10-12 10:43   ` Kevin Wolf
2009-10-12 16:40     ` Adam Lackorzynski
2009-10-14 16:11     ` Adam Lackorzynski
2009-10-19  8:30       ` Kevin Wolf
2009-10-20 18:22         ` Adam Lackorzynski
     [not found]           ` <m3aazl8y4m.fsf@neno.mitica>
2009-10-21  9:29             ` [Qemu-devel] " Kevin Wolf
2009-10-12 10:28 ` [Qemu-devel] [PATCH 1/2] multiboot: Fix cmdline of modules Kevin Wolf

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=1255268921-5403-1-git-send-email-adam@os.inf.tu-dresden.de \
    --to=adam@os.inf.tu-dresden.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).