From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [RFC] Tagged mbi
Date: Thu, 07 Jan 2010 22:32:47 +0100 [thread overview]
Message-ID: <4B4652FF.8030508@gmail.com> (raw)
In-Reply-To: <20100107210841.GA26340@thorin>
[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]
Robert Millan wrote:
> On Mon, Jan 04, 2010 at 10:12:51PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>
>> 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
>>
>
> Seems like there's a problem indeed.
>
>
>> I propose to use tagged MBI.
>>
>
> Can you provide a short explanation on this proposed solution? You explained
> the problem, but not the solution.
>
>
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
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
next prev parent reply other threads:[~2010-01-07 21:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-04 21:12 [RFC] Tagged mbi Vladimir 'φ-coder/phcoder' Serbinenko
2010-01-07 21:08 ` Robert Millan
2010-01-07 21:32 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2010-01-07 21:16 ` Multiboot 2 branch (Re: [RFC] Tagged mbi) Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B4652FF.8030508@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.