From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: multiboot2: make multiboot header optional
Date: Tue, 5 Dec 2006 21:23:10 +0100 [thread overview]
Message-ID: <200612052123.10177.okuji@enbug.org> (raw)
In-Reply-To: <1165250619.30343.17.camel@basalt>
On Monday 04 December 2006 17:43, Hollis Blanchard wrote:
> It should be pretty clear that 32 bits are a finite number, and tags are
> unlimited. In fact it's worse than that, since the bit partitioning
> means we have far fewer available bits for any particular flag.
Tags are also finite, too, theoretically speaking. :p
If the number of bits is really a problem, it is even possible to make
additional flags only when a bit in the original flags is set... Well, this
is ugly, but this is the so-called tag structure as well, no?
Seriously, I really don't think the number of bits could be fatal. You were
advocating removing the header itself, then why would you expect so much
extension in the future?
> The bit numbering is also confusing, especially the partitioning of
> meanings (this is required, this is requested, this is arch-specific,
> this isn't).
I agree with this part. We can make it better.
> Finally, using flags for some things and tags for others is
> inconsistent.
I don't care. For OS developers, this inconsistency does not hurt them.
As I mentioned earlier, it is annoying to write tags by hand, while generating
tags is as easy as parsing a fixed structure for programs. If you don't
believe this, ask somebody else which looks easier:
.long multiboot_header
.long _start
.long _edata
.long _end
.long multiboot_entry
or:
.long HEADER_ADDRESS_TAG, 12, multiboot_header
.long LOAD_START_ADDRESS_TAG, 12, _start
.long LOAD_END_ADDRESS_TAG, 12, _edata
.long BSS_END_ADDRESS_TAG, 12, _end
.long ENTRY_ADDRESS_TAG, 12, multiboot_entry
>
> The extensibility argument alone is enough to seal it for me, especially
> since the code can be written in such an error-free manner, as I've
> demonstrated.
Is it a good spec which forces one to use sample code to be error-free?
Okuji
next prev parent reply other threads:[~2006-12-05 20:23 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 22:58 multiboot2: make multiboot header optional Hollis Blanchard
2006-11-15 8:57 ` Johan Rydberg
2006-11-15 18:42 ` Hollis Blanchard
2006-11-15 20:42 ` Yoshinori K. Okuji
2006-11-15 21:39 ` Hollis Blanchard
2006-11-15 23:38 ` tgingold
2006-11-25 2:59 ` Yoshinori K. Okuji
2006-11-25 3:35 ` Hollis Blanchard
2006-11-25 4:25 ` Yoshinori K. Okuji
2006-12-02 16:18 ` Marco Gerards
2006-12-02 17:27 ` Yoshinori K. Okuji
2006-12-04 16:43 ` Hollis Blanchard
2006-12-05 20:23 ` Yoshinori K. Okuji [this message]
2006-12-07 23:07 ` multiboot2: using tags in the multiboot header Hollis Blanchard
2006-12-12 22:23 ` Yoshinori K. Okuji
2006-12-04 20:35 ` multiboot2: make multiboot header optional Marco Gerards
2006-12-05 19:09 ` Hollis Blanchard
2006-12-05 20:04 ` Yoshinori K. Okuji
2006-12-07 22:39 ` Hollis Blanchard
2006-12-12 22:08 ` Yoshinori K. Okuji
2006-12-13 4:18 ` Hollis Blanchard
2006-12-13 20:56 ` Yoshinori K. Okuji
2006-12-13 12:28 ` Marco Gerards
2006-12-02 16:15 ` Marco Gerards
2006-12-02 17:19 ` Yoshinori K. Okuji
2006-11-15 20:37 ` Yoshinori K. Okuji
2006-11-15 23:41 ` tgingold
2006-11-21 16:18 ` Hollis Blanchard
2006-11-21 17:35 ` tgingold
2006-11-25 3:05 ` Yoshinori K. Okuji
2006-11-25 3:00 ` Yoshinori K. Okuji
2006-11-25 6:12 ` Tristan Gingold
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=200612052123.10177.okuji@enbug.org \
--to=okuji@enbug.org \
--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.