diff --git a/arch/multiboot.c b/arch/multiboot.c index 9f5c409..72e9e6e 100644 --- a/arch/multiboot.c +++ b/arch/multiboot.c @@ -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", diff --git a/iso/rootfs/boot/grub/grub.cfg b/iso/rootfs/boot/grub/grub.cfg index 67787c9..4993a0e 100644 --- a/iso/rootfs/boot/grub/grub.cfg +++ b/iso/rootfs/boot/grub/grub.cfg @@ -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 }