Received: from eggs.gnu.org ([140.186.70.92]:44949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSb40-0004ir-9S for qemu-devel@nongnu.org; Fri, 03 Jun 2011 16:33:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSb3y-0001cd-NO for qemu-devel@nongnu.org; Fri, 03 Jun 2011 16:33:47 -0400 Received: from hall.aurel32.net ([88.191.126.93]:40124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSb3y-0001cV-84 for qemu-devel@nongnu.org; Fri, 03 Jun 2011 16:33:46 -0400 Date: Fri, 3 Jun 2011 22:33:44 +0200 From: Aurelien Jarno Message-ID: <20110603203343.GC14583@volta.aurel32.net> References: <1303999871-9955-1-git-send-email-arun.thomas@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1303999871-9955-1-git-send-email-arun.thomas@gmail.com> Subject: Re: [Qemu-devel] [PATCH] multiboot: set boot_device to first partition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Arun Thomas Cc: qemu-devel@nongnu.org On Thu, Apr 28, 2011 at 04:11:11PM +0200, Arun Thomas wrote: > The multiboot info struct's 'boot_device' field has 'part1' set to 0x01, which > maps to the second primary partition. To specify the first primary partition, > 'part1' should be set to 0x00, since partition numbers start from zero > according to the multiboot spec. > > Signed-off-by: Arun Thomas > > --- > hw/multiboot.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Thanks, applied. > diff --git a/hw/multiboot.c b/hw/multiboot.c > index 394ed01..6e6cfb9 100644 > --- a/hw/multiboot.c > +++ b/hw/multiboot.c > @@ -307,7 +307,7 @@ int load_multiboot(void *fw_cfg, > | MULTIBOOT_FLAGS_MMAP); > stl_p(bootinfo + MBI_MEM_LOWER, 640); > stl_p(bootinfo + MBI_MEM_UPPER, (ram_size / 1024) - 1024); > - stl_p(bootinfo + MBI_BOOT_DEVICE, 0x8001ffff); /* XXX: use the -boot switch? */ > + stl_p(bootinfo + MBI_BOOT_DEVICE, 0x8000ffff); /* XXX: use the -boot switch? */ > stl_p(bootinfo + MBI_MMAP_ADDR, ADDR_E820_MAP); > > mb_debug("multiboot: mh_entry_addr = %#x\n", mh_entry_addr); > -- > tg: (d16e0f0..) bootdev (depends on: master) > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net