mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 09:10:53 +00:00
Fix mistakes in example kernel
This commit is contained in:
1 parent
054d1faa5a
commit
dd2c93cb84
1 file changed
+4
-3
+4
-3
@@ -50,7 +50,7 @@ void
|
|||||||
cmain (unsigned long magic, unsigned long addr)
|
cmain (unsigned long magic, unsigned long addr)
|
||||||
{
|
{
|
||||||
struct multiboot_tag *tag;
|
struct multiboot_tag *tag;
|
||||||
uint32_t size;
|
unsigned size;
|
||||||
|
|
||||||
/* Clear the screen. */
|
/* Clear the screen. */
|
||||||
cls ();
|
cls ();
|
||||||
@@ -62,7 +62,7 @@ cmain (unsigned long magic, unsigned long addr)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = *(uint32_t *) addr;
|
size = *(unsigned *) addr;
|
||||||
printf ("Announced mbi size 0x%x\n", size);
|
printf ("Announced mbi size 0x%x\n", size);
|
||||||
for (tag = (struct multiboot_tag *) (addr + 4);
|
for (tag = (struct multiboot_tag *) (addr + 4);
|
||||||
tag->type != MULTIBOOT_TAG_TYPE_END;
|
tag->type != MULTIBOOT_TAG_TYPE_END;
|
||||||
@@ -204,7 +204,8 @@ cmain (unsigned long magic, unsigned long addr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printf ("Total mbi size 0x%x\n", (uint32_t) tag - addr);
|
tag = (struct multiboot_tag *) ((multiboot_uint8_t *) tag + tag->size);
|
||||||
|
printf ("Total mbi size 0x%x\n", (unsigned) tag - addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clear the screen and initialize VIDEO, XPOS and YPOS. */
|
/* Clear the screen and initialize VIDEO, XPOS and YPOS. */
|
||||||
|
|||||||
Reference in new issue
Block a user