From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Toomas Soome <tsoome@me.com>
Cc: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: multiboot2.h & multiboot_header_tag_module_align
Date: Thu, 4 Jun 2015 19:36:51 +0300 [thread overview]
Message-ID: <20150604193651.75e8ab04@opensuse.site> (raw)
In-Reply-To: <397C2E4D-B5C1-4937-B761-7C5A4A05E527@me.com>
В Thu, 04 Jun 2015 19:29:17 +0300
Toomas Soome <tsoome@me.com> пишет:
>
> > On 04.06.2015, at 19:19, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
> >
> > В Thu, 04 Jun 2015 19:04:46 +0300
> > Toomas Soome <tsoome@me.com> пишет:
> >
> >>
> >>> On 04.06.2015, at 18:31, Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> wrote:
> >>>
> >>> On 04.06.2015 14:18, Toomas Soome wrote:
> >>>> hi!
> >>>>
> >>>> i know this tag (multiboot_header_tag_module_align) is not really used, but it still would be nice if the copy/paste error of the actual structure would be fixed;)
> >>>>
> >>> Can you propose a patch?
> >>>> rgds,
> >>
> >> as its header tag, i think following should be it; header tags have 16bit ints for type and flags, 32bit size and based on name, this tag is to request bootloader to use specified alignment, so the data field should be 32bit uint as well (default MULTIBOOT_MOD_ALIGN is 0x00001000).
> >>
> >> diff --git a/include/multiboot2.h b/include/multiboot2.h
> >> index 3ccff15..e3064da 100644
> >> --- a/include/multiboot2.h
> >> +++ b/include/multiboot2.h
> >> @@ -156,9 +156,7 @@ struct multiboot_header_tag_module_align
> >> multiboot_uint16_t type;
> >> multiboot_uint16_t flags;
> >> multiboot_uint32_t size;
> >> - multiboot_uint32_t width;
> >> - multiboot_uint32_t height;
> >> - multiboot_uint32_t depth;
> >> + multiboot_uint32_t align;
> > What about consulting multiboot2 specification? :)
>
>
> oh right, for some reason i missed the actual specification and was stumbling on link to this broken header;)
>
> this is of course the correct one (http://nongnu.askapache.com/grub/phcoder/multiboot.pdf 3.1.9 If this tag is present modules must be page aligned):
>
> diff --git a/include/multiboot2.h b/include/multiboot2.h
> index 3ccff15..9d48627 100644
> --- a/include/multiboot2.h
> +++ b/include/multiboot2.h
> @@ -156,9 +156,6 @@ struct multiboot_header_tag_module_align
> multiboot_uint16_t type;
> multiboot_uint16_t flags;
> multiboot_uint32_t size;
> - multiboot_uint32_t width;
> - multiboot_uint32_t height;
> - multiboot_uint32_t depth;
> };
>
> struct multiboot_color
>
Could you make properly formatted git patch either as attachment or as
git send-email?
next prev parent reply other threads:[~2015-06-04 16:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-04 12:18 multiboot2.h & multiboot_header_tag_module_align Toomas Soome
2015-06-04 15:31 ` Vladimir 'φ-coder/phcoder' Serbinenko
2015-06-04 16:04 ` Toomas Soome
2015-06-04 16:19 ` Andrei Borzenkov
2015-06-04 16:29 ` Toomas Soome
2015-06-04 16:36 ` Andrei Borzenkov [this message]
2015-06-04 16:46 ` Toomas Soome
2015-06-04 17:02 ` Andrei Borzenkov
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=20150604193651.75e8ab04@opensuse.site \
--to=arvidjaar@gmail.com \
--cc=grub-devel@gnu.org \
--cc=tsoome@me.com \
/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;
as well as URLs for NNTP newsgroup(s).