[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] hw: improve multiboot module loading
From: |
ralf |
Subject: |
[Qemu-devel] [PATCH] hw: improve multiboot module loading |
Date: |
Thu, 7 Apr 2011 00:19:01 -0000 (UTC) |
User-agent: |
SquirrelMail/1.4.15 |
Multiboot modules couldn't be loaded when there are spaces between the
filename and ','. Those spaces can simply be killed.
Signed-off-by:
---
diff --git a/hw/multiboot.c b/hw/multiboot.c
index 0d2bfb4..27eb159 100644
--- a/hw/multiboot.c
+++ b/hw/multiboot.c
@@ -267,6 +267,9 @@ int load_multiboot(void *fw_cfg,
/* if a space comes after the module filename, treat everything
after that as parameters */
target_phys_addr_t c = mb_add_cmdline(&mbs, initrd_filename);
+ /* Kill spaces at the beginning of the filename */
+ while( *initrd_filename == ' ' )
+ initrd_filename++;
if ((next_space = strchr(initrd_filename, ' ')))
*next_space = '\0';
mb_debug("multiboot loading module: %s\n", initrd_filename);
- [Qemu-devel] [PATCH] hw: improve multiboot module loading,
ralf <=
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Alexander Graf, 2011/04/06
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Ralf Ramsauer, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Alexander Graf, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Ralf Ramsauer, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Alexander Graf, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Ralf Ramsauer, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Stefan Hajnoczi, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Ralf Ramsauer, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Stefan Hajnoczi, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Adam Lackorzynski, 2011/04/07