From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFRwB-0000sW-QN for qemu-devel@nongnu.org; Thu, 28 Apr 2011 10:11:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFRwA-00059Q-TS for qemu-devel@nongnu.org; Thu, 28 Apr 2011 10:11:23 -0400 Received: from mail-ew0-f45.google.com ([209.85.215.45]:37692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFRwA-00059C-PF for qemu-devel@nongnu.org; Thu, 28 Apr 2011 10:11:22 -0400 Received: by ewy24 with SMTP id 24so984616ewy.4 for ; Thu, 28 Apr 2011 07:11:21 -0700 (PDT) From: Arun Thomas Date: Thu, 28 Apr 2011 16:11:11 +0200 Message-Id: <1303999871-9955-1-git-send-email-arun.thomas@gmail.com> Subject: [Qemu-devel] [PATCH] multiboot: set boot_device to first partition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Arun Thomas 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(-) 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)