Print additional info

This commit is contained in:
Braiden Vasco 2017-11-01 13:54:53 +00:00
parent b64ce90abe
commit b3d4b68e43
2 changed files with 15 additions and 1 deletions

View File

@ -25,6 +25,20 @@ void print_multiboot_info(unsigned long addr)
{
switch (tag->type)
{
case MULTIBOOT_TAG_TYPE_CMDLINE:
printf(
"Command line = %s\n",
((struct multiboot_tag_string *) tag)->string
);
break;
case MULTIBOOT_TAG_TYPE_BOOT_LOADER_NAME:
printf(
"Boot loader name = %s\n",
((struct multiboot_tag_string *) tag)->string
);
break;
case MULTIBOOT_TAG_TYPE_MODULE:
printf(
"Module at 0x%x-0x%x. Command line %s\n",

View File

@ -1,5 +1,5 @@
menuentry "KernelMQ" {
multiboot2 /boot/kernelmq
multiboot2 /boot/kernelmq hello kernel
module2 /boot/grub/grub.cfg qwe rty
module2 /boot/kernelmq foo bar
}