From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NSzyc-0000rr-HA for mharc-grub-devel@gnu.org; Thu, 07 Jan 2010 16:33:06 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSzyY-0000jf-Kx for grub-devel@gnu.org; Thu, 07 Jan 2010 16:33:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSzyU-0000as-Tf for grub-devel@gnu.org; Thu, 07 Jan 2010 16:33:02 -0500 Received: from [199.232.76.173] (port=35225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSzyU-0000ab-QU for grub-devel@gnu.org; Thu, 07 Jan 2010 16:32:58 -0500 Received: from mail-fx0-f228.google.com ([209.85.220.228]:42026) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSzyU-0008DY-Cv for grub-devel@gnu.org; Thu, 07 Jan 2010 16:32:58 -0500 Received: by fxm28 with SMTP id 28so10000801fxm.26 for ; Thu, 07 Jan 2010 13:32:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=6fl9M2r3VWSJ0ICVGpQgLf89noCIxQzEqmVM+X7o8t4=; b=N8sg+tZFPXkube4FSfa6BP+2ztjTjk9nqCShPn1IaVJBImcHS6S/gug08QhlZoHF88 xhiYGfEgFqIWIW6UYDj7szXWm3qY4uyYESh544aTl64dsb7xOTkQ1UehR0rCmaDvAA8F e5C5xXZdH+gUq8Pq694Ei9zgf30RQTU1r0Rxc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=LhX4XWtB+BnHF6cdt2b4R2uALx3iRtdaV+cilRQML5691XlkyamItO4Ei89WDPidDX /CTsk2GDMkAv7cJXNYI/S+yTpGLg1IKRm7G6NOYM2yCMrLg/oKxF14cP8to45lD3ASxU qMmrxhIsFkGUPHZdfqubz4IcleOE9G8pVXkhg= Received: by 10.87.62.6 with SMTP id p6mr35852904fgk.10.1262899976812; Thu, 07 Jan 2010 13:32:56 -0800 (PST) Received: from debian.bg45.phnet (243-54.79-83.cust.bluewin.ch [83.79.54.243]) by mx.google.com with ESMTPS id 12sm55798061fgg.2.2010.01.07.13.32.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Jan 2010 13:32:55 -0800 (PST) Message-ID: <4B4652FF.8030508@gmail.com> Date: Thu, 07 Jan 2010 22:32:47 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <4B4259D3.5020004@gmail.com> <20100107210841.GA26340@thorin> In-Reply-To: <20100107210841.GA26340@thorin> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig3B6C553E4AA45D3C561B1F95" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [RFC] Tagged mbi 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: Thu, 07 Jan 2010 21:33:02 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3B6C553E4AA45D3C561B1F95 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Robert Millan wrote: > On Mon, Jan 04, 2010 at 10:12:51PM +0100, Vladimir '=CF=86-coder/phcode= r' Serbinenko wrote: > =20 >> Hello. Currently mbi contains a lot of pointers and substructures. It'= s >> has various problems like: >> -Unused fields occupy space if any subsequent fields is used. >> -Difficult to relocate since it may be spilled all over the memory >> -It's unstraightforward to e.g. specify 2 framebuffers >> =20 > > Seems like there's a problem indeed. > > =20 >> I propose to use tagged MBI. >> =20 > > Can you provide a short explanation on this proposed solution? You exp= lained > the problem, but not the solution. > > =20 The solution is to have so called tags. Tag is a structure which begins with fields "size" and "type" and the rest of the content is determined by these 2 fields. Tags follow each other and the end of structure is a predefined tag. This way it's easy to skip unknown tags because of size field, easy to relocate because mbi is in a contiguous chunk of memory. Same type of tag may appear multiple times declaring e.g. 2 framebuffers. Details are in spec patch --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig3B6C553E4AA45D3C561B1F95 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.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAktGUwYACgkQNak7dOguQgmt+AD/XIdioMUd0ln7MkXK1Wn9/IlY dBDQ/yYOfTRC1oh+pFEBAI5P+EOYGiZ7XoVGdsAR9pd1IqUqgPeTPYhJ6LCMg84z =qsLu -----END PGP SIGNATURE----- --------------enig3B6C553E4AA45D3C561B1F95--