Grub Development Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [multiboot2] Tagged multiboot2 header
Date: Tue, 02 Feb 2010 00:22:00 +0100	[thread overview]
Message-ID: <4B676218.6020009@gmail.com> (raw)
In-Reply-To: <20100129215200.GA20114@thorin>

[-- Attachment #1: Type: text/plain, Size: 1709 bytes --]

Robert Millan wrote:
> On Thu, Jan 21, 2010 at 12:49:55AM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>   
>> +@node Header tags
>> +@subsection General tag structure
>> +Tags constitutes a buffer of structures immediately following each other.
>> +Every structure has following format:
>> +
>> +@example
>> +@group
>> +        +-------------------+
>> +0       | type              |
>> +4       | size              |
>> +8-11    | optional          |
>> +        +-------------------+
>> +@end group
>> +@end example
>>     
>
> This looks fine.  Please go ahead with the proposed new layout.
>
> As for the addition of new fields for architecture / endianess, I wonder
> if it makes sense to continue supporting aout-kludge in Multiboot 2.  It
> seems that all of the projects interested in Multiboot use ELF natively
> themselves and shouldn't have trouble with it, whereas projects that don't
> use ELF are almost invariably proprietary OS and never showed any interest
> in Multiboot.
>   
There is at least one case where architecture fields is useful: amd64 vs
i386. if kernel is ELF64 we don't know if it expects to be started in
either i386 or amd64. An example is NetBSD which will certainly want to
keep compatibility with their own protocol which starts kernel in i386
mode. I think we need to allow 2 things:
1) start elf64 in i386
2) start with an entry point different from the one specified in ELF
header. For this we could split kludge header in 2 parts: loading and
entry point. This allows overriding ELF entry point. This way kernel can
have a separate entry point for multiboot.


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]

      parent reply	other threads:[~2010-02-01 23:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-20 23:49 [multiboot2] Tagged multiboot2 header Vladimir 'φ-coder/phcoder' Serbinenko
2010-01-25  7:46 ` Robert Millan
2010-01-29 21:52 ` Robert Millan
2010-01-30 22:42   ` demetrioussharpe
2010-02-01 23:22   ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]

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=4B676218.6020009@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox