mirror of
https://github.com/tailix/kernel.git
synced 2024-11-20 11:16:10 -05:00
Print additional info
This commit is contained in:
parent
b64ce90abe
commit
b3d4b68e43
2 changed files with 15 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue