2008-11-07 Robert Millan <rmh@aybabtu.com>

* include/multiboot2.h (struct multiboot_header): Add `flags' member as
        per specification.
        * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
        * loader/multiboot_loader.c (find_multi_boot2_header): New function
        (based on find_multi_boot1_header).
        (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
        using find_multi_boot2_header(), and abort if neither Multiboot or
        Multiboot headers were found.
This commit is contained in:
robertmh 2008-11-07 19:53:25 +00:00
parent 9f3af64471
commit c32ee8c9a8
4 changed files with 47 additions and 9 deletions

View file

@ -46,6 +46,7 @@ typedef uint32_t multiboot_word;
struct multiboot_header
{
uint32_t magic;
uint32_t flags;
};
struct multiboot_tag_header