grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: some multiboot2 comments


From: Hollis Blanchard
Subject: Re: some multiboot2 comments
Date: Mon, 30 Oct 2006 19:43:07 -0600

On Mon, 2006-10-30 at 21:15 +0200, Yoshinori K. Okuji wrote:
> On Saturday 28 October 2006 20:32, Hollis Blanchard wrote:
> > Are you saying that given tag->key == foo, tag->length == sizeof(struct
> > tag_foo)? I think it makes far more sense to allow 'length' to be
> > independent of 'key', and that means we don't need this 'reserved'
> > stuff.
> 
> 'length' is sometimes somehow independent. When passing data whose size is 
> variable, 'length' specifies the size. The size of an item is indirectly 
> defined by 'length'. The size of an item can be different from the size of 
> data, because of a padding for an alignment.

That definition doesn't take advantage of the flexibility 'length' could
give us. We should be able to use arbitrary values for 'length', even
when the tag structure size is well-defined. There is no reason not
to...

-Hollis





reply via email to

[Prev in Thread] Current Thread [Next in Thread]