From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Q8D3y-0008Mk-G0 for mharc-grub-devel@gnu.org; Fri, 08 Apr 2011 10:53:30 -0400 Received: from [140.186.70.92] (port=42463 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8D3v-0008KR-KT for grub-devel@gnu.org; Fri, 08 Apr 2011 10:53:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8D3t-0005eU-I9 for grub-devel@gnu.org; Fri, 08 Apr 2011 10:53:27 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:45190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8D3t-0005eH-CR for grub-devel@gnu.org; Fri, 08 Apr 2011 10:53:25 -0400 Received: by bwz17 with SMTP id 17so3383101bwz.0 for ; Fri, 08 Apr 2011 07:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type; bh=tllk8RWlIJQvG84GEljz1emr9DJDigri315/Oxs1cNQ=; b=Qlzx5vq0V2PGu4eU2cznWamNp4a89e+bTOH9e6hitKZEgLgZB6XnksYCh3KakisESm g4wHsCRRZ0VDij2NZTS62b+FFb6w1BdBIYDx5s6WFcrLR8qRe+F1NFkCRs7St3UDKI48 P/8k0UPHU+q3qSXBnjQeHa4d35sHkF/M2v3gw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=TzecAtn+O6jTBEHechCYZyt98TmQl4KxziZ4Z0+RTdTcET4PTe3e16qvS1sZYKOVS0 BjBBp23enTCoIDE40DI2vZQrJrg5ttvDUQ1UCYDdiTiAuk5KhMdZrBzu390XOWjjgZMf hS1gfU1dvUjg5Fix5z7UROO8Og31IXIXVdAKA= Received: by 10.204.82.74 with SMTP id a10mr2059868bkl.96.1302274404198; Fri, 08 Apr 2011 07:53:24 -0700 (PDT) Received: from debian.x201.phnet (gprs21.swisscom-mobile.ch [193.247.250.21]) by mx.google.com with ESMTPS id z21sm1363971bku.16.2011.04.08.07.53.20 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Apr 2011 07:53:22 -0700 (PDT) Message-ID: <4D9F215E.8010203@gmail.com> Date: Fri, 08 Apr 2011 16:53:18 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Iceowl/1.0b2 Icedove/3.1.9 MIME-Version: 1.0 To: Goswin von Brederlow References: <87r59efek1.fsf@frosties.localnet> <4D9DB463.20903@gmail.com> <87y63mnmja.fsf@frosties.localnet> <4D9DD0CD.5040904@gmail.com> <87y63motm0.fsf@frosties.localnet> <4D9DF982.3010505@gmail.com> <87mxk0ls6t.fsf@frosties.localnet> In-Reply-To: <87mxk0ls6t.fsf@frosties.localnet> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig2A56F962183A1EE7BB512636" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 Cc: The development of GNU GRUB Subject: Re: Would a cleanup+extending of docs/multiboot.h be acceptable? 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: Fri, 08 Apr 2011 14:53:29 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2A56F962183A1EE7BB512636 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08.04.2011 16:43, Goswin von Brederlow wrote: > "Vladimir '=C3=8F=E2=80=A0-coder/phcoder' Serbinenko" writes: > >> On 07.04.2011 19:32, Goswin von Brederlow wrote: >>> I see that you have added 32bit MIPS support. No 64bit x86_64 support= >>> though. So my trampoline + 64bit kernel stuff would still be interest= ing >>> to people. >> We already have the needed infrastructure to load in 64-bit mode. Have= a >> look at loader/i386/bsd.c. Mostly you just need to use >> grub_relocator64_boot and not grub_relocator32_boot. The main issue is= >> clear specification of intended behaviour. > I'm adding an implementation of this to kvm, proof of concept kind of > way. For that I'm assuming the following changes to the specs: > > // Why is this in steps of 4? > #define MULTIBOOT_ARCHITECTURE_X86_64 8 > #define MULTIBOOT_ARCHITECTURE_MIPS64 12 > Because the lower 2 bits pertain to the number of bits on platform. 0 -> 32 1 -> 64 2 -> 16 3 -> everything else Are you familiar with mips? Unlike on x86, mips32 and mips64 don't refer to different modes but mips32 is a subset of mips64. So unless you're familiar with mips, leave this part out for now. > All structures remain as they are. That means that addresses must be > below 4GB (maybe even 2GB or sign extention screws things up) unless > they are defined as 64bit (memory mappings use 64bit, entry point only > 32bit). The kernel + modules must be loaded below 4GB (2GB?). > No. For 64-bit mode all fields must be extended to 64-bit and kernel and modules can be loaded anywhere > The system state when leaving the bootloader is like in 32bit but > modified as follows: > > - PAE is enabled > - Paging is enabled > - Long mode is enabled > - Long mode is active > - CS contains a 64bit code segment > - the lower 4GB of memory are mapped 1:1 accessible R/W to Ring 0 and i= n > 2MB granularity > I would rather make it "all segments reffered to in memory map are P=3DV mapped". It may be good to specify where page table is to be located to ease avoiding overwriting it. > I'm tempted to add 2 new info tags: multiboot_tag_gpt and This would be a separate proposal. I think it would be better to have a tag for partition start and end byte rather than the partition number. > multiboot_tag_page_tables. The later would contain the number of tables= > and an array of pointers to the pages. But that might be too i386/x86 > specific. > This information is available through cr registers. > MfG > Goswin > > --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig2A56F962183A1EE7BB512636 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk2fIV4ACgkQNak7dOguQgnySgD/Zag1EvrwyHey6wa1gOrnIbVA t020KSbtz1/txWo4eH0A/Rx0ED7rcWBMrjARQRjlrv5bnXSExalXwhkZ4qv9bR2l =YvPi -----END PGP SIGNATURE----- --------------enig2A56F962183A1EE7BB512636--