2010-01-07 Robert Millan <rmh.grub@aybabtu.com>

* include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
	* loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here.  Update
	all users.
This commit is contained in:
Robert Millan 2010-01-07 19:55:16 +00:00
parent 53108d92ba
commit 5d2c52b8ca
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
* include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
* loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
all users.
2010-01-07 Robert Millan <rmh.grub@aybabtu.com> 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
2010-01-07 Vladimir Serbinenko <phcoder@gmail.com> 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>

View file

@ -31,9 +31,6 @@
/* This should be in %eax. */ /* This should be in %eax. */
#define MULTIBOOT_BOOTLOADER_MAGIC 0x2BADB002 #define MULTIBOOT_BOOTLOADER_MAGIC 0x2BADB002
/* The bits in the required part of flags field we don't support. */
#define MULTIBOOT_UNSUPPORTED 0x0000fffc
/* Alignment of multiboot modules. */ /* Alignment of multiboot modules. */
#define MULTIBOOT_MOD_ALIGN 0x00001000 #define MULTIBOOT_MOD_ALIGN 0x00001000

View file

@ -27,6 +27,9 @@
* - APM table * - APM table
*/ */
/* The bits in the required part of flags field we don't support. */
#define UNSUPPORTED_FLAGS 0x0000fffc
#include <grub/loader.h> #include <grub/loader.h>
#include <grub/machine/loader.h> #include <grub/machine/loader.h>
#include <grub/multiboot.h> #include <grub/multiboot.h>
@ -261,7 +264,7 @@ grub_multiboot (int argc, char *argv[])
goto fail; goto fail;
} }
if (header->flags & MULTIBOOT_UNSUPPORTED) if (header->flags & UNSUPPORTED_FLAGS)
{ {
grub_error (GRUB_ERR_UNKNOWN_OS, grub_error (GRUB_ERR_UNKNOWN_OS,
"unsupported flag: 0x%x", header->flags); "unsupported flag: 0x%x", header->flags);