Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Q6MxW-0002QS-16 for mharc-grub-devel@gnu.org; Sun, 03 Apr 2011 09:03:14 -0400 Received: from [140.186.70.92] (port=47508 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6Me3-0006BF-L3 for grub-devel@gnu.org; Sun, 03 Apr 2011 08:43:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6Mdw-0003GP-Ph for grub-devel@gnu.org; Sun, 03 Apr 2011 08:43:05 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:56820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6Mdw-0003G0-H9 for grub-devel@gnu.org; Sun, 03 Apr 2011 08:43:00 -0400 Received: from smtp04.web.de ( [172.20.0.225]) by fmmailgate02.web.de (Postfix) with ESMTP id 0E88C19BC58A5 for ; Sun, 3 Apr 2011 14:42:58 +0200 (CEST) Received: from [78.43.204.177] (helo=frosties.localnet) by smtp04.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #2) id 1Q6Mdt-0005P0-00 for grub-devel@gnu.org; Sun, 03 Apr 2011 14:42:58 +0200 Received: from mrvn by frosties.localnet with local (Exim 4.72) (envelope-from ) id 1Q6Mdt-0007B9-Eb for grub-devel@gnu.org; Sun, 03 Apr 2011 14:42:57 +0200 From: Goswin von Brederlow To: grub-devel@gnu.org Date: Sun, 03 Apr 2011 14:42:57 +0200 Message-ID: <87r59jijzi.fsf@frosties.localnet> User-Agent: Gnus/5.110009 (No Gnus v0.9) XEmacs/21.4.22 (linux, no MULE) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: goswin-v-b@web.de X-Sender: goswin-v-b@web.de X-Provags-ID: V01U2FsdGVkX1+Xl7Cy2QMU0T5iuV0CqL0gaYZHjkBA8BGA+fGO 2oG5LhsCAUXzfxm7dG0ymO507bUbpZDWaUULeI/9GUtjaXSVIN Dd2pUEMEs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.227 X-Mailman-Approved-At: Sun, 03 Apr 2011 09:03:13 -0400 Subject: Feature request: Extend multiarch specs for 64bit OSes X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2011 12:43:12 -0000 Hi, the multiboot specs and their implementation in grub and kvm are nice for anyone playing at writing their own little kernel. The bootloader take care of all the ugly details of getting from the bootsector and 16bit mode to a running 32bit mode which is great. The kernel can start right up doing real work. But here is the problem: Most systems nowadays support 64bit, most kernel support 64bit, people have >4GB ram and (most importantly :) I want to play in 64bit. That means before I can play with my kernel I first need to write a mini bootloader that switches from 32bit mode to 64bit mode and then starts my kernel. For comfort the mini bootloader should be able to parse a.out or elf, do relocations and all that stuff grub/kvm does for 32bit already. So here is my feature request: Please extend the multiarch specs to include a 64bit mode. Please add support in grub for elf64-x86_64 binaries. This could be as simple as adding a new bit in the multiboot header flags while keepping all data structures as is. The kernel would then have to be located in the lower 4GB of ram to be able to fit in the 32bit *_addr (if that is used) and grub would call entry_addr in 64bit mode. Or a new multiboot magic could be defined with new data structures allowing for kernel and modules to be loaded beyond 4GB. But that is probably not neccessary. Comments? MfG Goswin