For consistency with [multiboot]/docs/boot.S.
* include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
(MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
(MULTIBOOT_MAGIC2): Rename from this ...
(MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
+2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
+
+ For consistency with [multiboot]/docs/boot.S.
+
+ * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
+ (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
+ (MULTIBOOT_MAGIC2): Rename from this ...
+ (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
+
2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
* include/multiboot.h: Remove `<grub/types.h>'.
call LOCAL(move_memory)
/* Check for multiboot signature. */
- cmpl $MULTIBOOT_MAGIC, %ss:(DATA_ADDR + GRUB_KERNEL_MACHINE_DATA_END)
+ cmpl $MULTIBOOT_HEADER_MAGIC, %ss:(DATA_ADDR + GRUB_KERNEL_MACHINE_DATA_END)
jz 1f
movl (ramdisk_image - start), %esi
#define MULTIBOOT_SEARCH 8192
/* The magic field should contain this. */
-#define MULTIBOOT_MAGIC 0x1BADB002
+#define MULTIBOOT_HEADER_MAGIC 0x1BADB002
/* This should be in %eax. */
-#define MULTIBOOT_MAGIC2 0x2BADB002
+#define MULTIBOOT_BOOTLOADER_MAGIC 0x2BADB002
/* The bits in the required part of flags field we don't support. */
#define MULTIBOOT_UNSUPPORTED 0x0000fffc
.long -0x1BADB002 - MULTIBOOT_MEMORY_INFO
codestart:
- cmpl $MULTIBOOT_MAGIC2, %eax
+ cmpl $MULTIBOOT_BOOTLOADER_MAGIC, %eax
jne 0f
movl %ebx, EXT_C(startup_multiboot_info)
0:
{
struct grub_relocator32_state state =
{
- .eax = MULTIBOOT_MAGIC2,
+ .eax = MULTIBOOT_BOOTLOADER_MAGIC,
.ebx = PTR_TO_UINT32 (mbi_dest),
.ecx = 0,
.edx = 0,
((char *) header <= buffer + len - 12) || (header = 0);
header = (struct multiboot_header *) ((char *) header + 4))
{
- if (header->magic == MULTIBOOT_MAGIC
+ if (header->magic == MULTIBOOT_HEADER_MAGIC
&& !(header->magic + header->flags + header->checksum))
break;
}
((char *) header <= buffer + len - 12) || (header = 0);
header = (struct multiboot_header *) ((char *) header + 4))
{
- if (header->magic == MULTIBOOT_MAGIC
+ if (header->magic == MULTIBOOT_HEADER_MAGIC
&& !(header->magic + header->flags + header->checksum))
{
found_status = 1;