From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHGaJ-0004ra-OI for qemu-devel@nongnu.org; Thu, 18 Jun 2009 08:19:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHGaE-0004pm-Ar for qemu-devel@nongnu.org; Thu, 18 Jun 2009 08:19:15 -0400 Received: from [199.232.76.173] (port=52496 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHGaD-0004pd-Oy for qemu-devel@nongnu.org; Thu, 18 Jun 2009 08:19:10 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:60544) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHGaD-0002n0-29 for qemu-devel@nongnu.org; Thu, 18 Jun 2009 08:19:09 -0400 In-Reply-To: <4A3A2CB2.3090609@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/4] Add multiboot support (x86) v2 From: "=?utf-8?q?Fran=C3=A7ois?= Revol" Date: Thu, 18 Jun 2009 14:17:09 +0200 CEST Message-Id: <2966333961-BeMail@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: rene@exactcode.de, agraf@suse.de, qemu-devel@nongnu.org > Fran=C3=A7ois Revol schrieb: > >> Why would an OS want to parse multiboot structures but not > > > implement > >> proper multiboot support=3F I mean, this really isn't anything > >> complicated. When you have enabled it to understand multiboot > >> structures > >> you are only missing a handful of bytes for the multiboot header. > >> > >> What is it that you need to do differently for Haiku=3F > > > > Because Haiku has its own second stage loader, which requires the > > BIOS > > to locate the kernel and module in a BFS partition which grub > > doesn't > > implement btw. > > That makes sense on real hardware, of course. But for -kernel you > don't > need a file system to read the kernel from. Except that wouldn't be the actual kernel passed but the 2nd stage. And having to pass the kernel in a tgz outside the BFS image makes it more complex to set up. > I'm not talking about replacing the existing loader, but just about > adding support for multiboot as an additional option. Don't know how > the > Haiku boot process works though, so maybe I'm completely wrong. Yes that's possible, we already support OF for PPC, and we'll implement U-Boot support for ARM anyway. It's just that I "just" needed to pass args for this usage. > > It also handles PM switching by itself. > > Haiku might also use the BIOS for other stuff, like VESA mode > > switching, so I'd need to make sure all calls aren't strictly > > required. > > In theory you could switch back to Real Mode when starting through > multiboot and then continue as with a normal boot. Admittedly, > doesn't > sound exactly nice, but should be doable... The loader can likey detect it anyway. If multiboot is used it should't need to call the BIOS to read the kernel anyway. It's just a different code path. PPC boot starts with paging enabled IIRC. Fran=C3=A7ois.